brazzy / floating-point-gui.de

Website that provides concise answers to common questions about floating-point numbers.
http://floating-point-gui.de/
1.01k stars 165 forks source link

To Overcome this issue we can multiply and Divide #58

Closed GopinathKaliappan closed 4 years ago

GopinathKaliappan commented 4 years ago

var x = (0.2 10 + 0.1 10) / 10;

When we work with decimals in banking and Crypto currencies , It matters a lot so we can go with this method.

brazzy commented 4 years ago

That basically amounts to working with integers, which I have mentioned here: https://floating-point-gui.de/formats/integer/