rfc:rounding
Differences
This shows you the differences between two versions of the page.
Next revisionBoth sides next revision | |||
rfc:rounding [2008/08/23 20:43] – created cseiler | rfc:rounding [2008/08/24 15:50] – Some typos cseiler | ||
---|---|---|---|
Line 173: | Line 173: | ||
discussion. | discussion. | ||
- | === Frist version of math.c in CVS === | + | === First version of math.c in CVS === |
* Signature: round($float), | * Signature: round($float), | ||
Line 373: | Line 373: | ||
0.29 if used with %2f as format string. But the problem with fixing printf() is | 0.29 if used with %2f as format string. But the problem with fixing printf() is | ||
portability: | portability: | ||
- | do it wrong in the exact same way, PHP should not deviate from that (in my yes). | + | do it wrong in the exact same way, PHP should not deviate from that (in my eyes). |
It is always possible to do printf(" | It is always possible to do printf(" | ||
wants correct results, as long as round() works properly. Also, changing the | wants correct results, as long as round() works properly. Also, changing the | ||
- | printf() bigint algorithm | + | printf() bigint algorithm |
- | point algorithms where a extremely | + | is often used with very high precision |
However, the PHP manual should contain a warning for printf() that rounding may | However, the PHP manual should contain a warning for printf() that rounding may |
rfc/rounding.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1