4 ms·
Funny he complains so much about incorrect rounding without doing any research: that's called bankers' rounding. http://wiki.c2.com/?BankersRounding http://wik
by marian0_ 9y ago
Funny he complains so much about incorrect rounding without doing any research: that's called bankers' rounding.
http://wiki.c2.com/?BankersRounding http://wiki.c2.com/?BankersRounding
- int_19h 9y agoThe functions called "ceil" and "floor" shouldn't do banker's rounding - the very names describe what the behavior is supposed to be.
- FabHK 9y agoThe author is not complaining about the default rounding rule for floats in IEEE 754 (a very thoughtful standard, principally designed by William Kahan, who has several articles/rants about it on his homepage). The author is complaining about this particular (bad) implementation of ceil and related functions giving incorrect results (some due to said rounding rule).