Why 0.2+0.09 = 0.29000000000000004?

I am new to Julia. I typed 0.2+0.09 in Julia and got 0.29000000000000004. could anyone explain it? Thanks.

Also, see:

https://0.30000000000000004.com

7 Likes

Thanks for the detailed explanation. This is very helpful.

1 Like

You might found this package https://github.com/JuliaMath/DecFP.jl interesting

1 Like

This is great. Thank you!