8
What is the reason for the behavior below? Why not give 3.3?
I am running Javascript in the console and is returning this result.
Number(1.1)
1.1
Number(1.1) + Number(1.1)
2.2
Number(1.1) + Number(1.1) + Number(1.1)
3.3000000000000003
Number(1.1) + Number(1.1) + Number(1.1) + Number(1.1)
4.4
Number(1.1) + Number(1.1) + Number(1.1) + Number(1.1) + Number(1.1)
5.5
What behavior?
– Miguel Neto
The 3.3 trillion trillion instead of 3.3... @Miguelneto
– gustavox