[Bug]: toDecimal() returns .0
for exponent 0 currencies and should return an integer
#751
Open
2 tasks done
Labels
bug
Something isn't working
Is there an existing issue for this?
Current behavior
This same behavior occurs for other exponent 0 currencies.
Expected behavior
I would expect an integer value to be returned for "exponent 0" currencies, such as
300
for the above example.Steps to reproduce
toDecimal(dineroObj))
and view the result.Version
2.0.0-alpha
Note: I'm using Dinero's default JS numbers, not BigInt or other.
Environment
Node v20
Code of Conduct
The text was updated successfully, but these errors were encountered: