For a project, I need to perform a simple multiplication between two values (convert the little value to atomic value) :
- One value is a very little number (something like 6e-8)
- The other value is a fixed one : 1e18
For the major use cases, the simple multiplication works perfectly, but when using the two value above :
6e-8 * 1e18 = 59999999999.99999
Correct value should be 60000000000
How can I get this kind of value ? How can I get a float value like this, instead of the correct value ?
Hope someone can help me,
Kindly, Florian