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.

issue #21 - clarify wording on round half even

+1 -1
+1 -1
content/errors/rounding.html
··· 42 42 * **Rounding half to even** also known as **banker's rounding** - if the truncated fraction is 43 43 greater than half the base, 44 44 increase the last remaining digit. If it is equal to half the base, increase the digit only 45 - if it's not even. This minimizes errors and bias, and is therefore preferred for bookkeeping. 45 + if that produces an even result. This minimizes errors and bias, and is therefore preferred for bookkeeping. 46 46 47 47 Examples in base 10: 48 48 | | Towards zero | Half away from zero | Half to even |