I was playing with Node REPL and came across this strange behavior.
4.32 + 4.78 should be just 9.1
> 4.32 + 4.78
9.100000000000001
Another one is:
> 7.3 + 1.08
8.379999999999999
For other digits it works fine:
> 4.31 + 4.78
9.09
Tested it on Node version 4.8.3 and 7.4 on Ubuntu 16.04 and Linux/amd64 respectively.
Getting the same output.
Can anyone explain why it is like this?