Lo que todo programador debería saber sobre aritmética de punto flotante
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fixed link

+1 -1
+1 -1
content/basic.html
··· 17 17 represent a number like 1/3, so you have to round to something like 18 18 0.33 - and you don't expect 0.33 + 0.33 + 0.33 to add up to 1, either - do you? 19 19 20 - Computers use [binary numbers](/binary/ because they're faster at dealing with 20 + Computers use [binary numbers](/formats/binary/) because they're faster at dealing with 21 21 those, and because for most calculations, a tiny error in the 17th 22 22 decimal place doesn't matter at all since the numbers you work with 23 23 aren't round (or that precise) anyway.