I parsed a CSV file, which contains currency_exchange_rate column with values with different decimal places, for example:
- 3.6415
- 0.896458
- 1
- 0.30376
I would like to have all the rates rounded to 4 decimal places, in case above it should look as below:
- 3.6415
- 0.8965
- 1.0000
- 0.3038
When changing the column data type to 'float' the 'format' option is greyed out. I checked the 'Directives' and 'Functions' chapters for some more information and there is nothing referring to the decimal places of a float value. I found another thread on StackOverflow regards custom transformations, but still I don't know if it is possible to round the values as I need.
Can you please let me know how to achieve the format I described above? Any input would be much appreciated.