I am reading an Excel (.xlsx) file in MuleSoft from AWS S3 bucket and once I have the file from S3 bucket, I get the data of the excel file like this :
%dw 2.0
output application/json
---
payload.parts pluck (value,key,index) ->
{
(key) : { (read(value.content, 'application/xlsx'))}
}
the problem is, there is a value in file 12.535, which is being read as 12.53499999. Which creates a problem in rounding because ideally when I round up the decimal I should get value 12.54 but instead because of that .5349999
I get value as 12.53.
How can I make sure Mule reads correct value or parses a correct value?
using Mule runtime 4.3.0.