+ 1
why this code gives 3.0000000000000004 ?
7 Respuestas
+ 6
https://www.sololearn.com/discuss/1606645/?ref=app
and of course,
https://stackoverflow.com/questions/21895756/why-are-floating-point-numbers-inaccurate
+ 1
Hatsy Rei thanks for this start of explaination ;)
+ 1
Seb TheS thx. i will sleep less stupid to night with this knowledge...
0
thx for your answers Mirielle🐶 [Inactive] but how 0.1+0.2 give 0.30...4 ?
it's not logic (mathematicly)
0
Oneill [HTML+JS+PHP] You need to know that computers store floats in binary.
Some 10th base floats can not be converted to binary.
0
Any float that can not be converted into a whole number by multiplicating it with 2 as many times as necessary, can not be completed in binary format.