-
-
Notifications
You must be signed in to change notification settings - Fork 18
Closed
Description
I wrote this simple script using version 2.5.0
const { convert } = require('cashify')
const rates = {
"USD": 1,
"EUR": 0.8235,
}
console.log(convert(1, {from: "USD", to: "EUR", rates}))
And the output is 0.8234999999999999
. I was expecting to received 0.8235
, if I run console.log(convert(10, {from: "USD", to: "EUR", rates}))
I get a nice value of 8.235
.
Agilulfo1820, fedemengo and sandy1007
Metadata
Metadata
Assignees
Labels
No labels