2009/2/3 Robert Rohde <[email protected]>:

> My code assumes floor( 4.9999999999 ) should really be floor(5) = 5.
>
> If someone really expects floor( 4.9999999999 ) to be 4, then from
> their point of view that is an error.


If anyone want to be sure that floor(4.99999999..) == 5 he should use
floor(round()) not floor().

AJF/WarX

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to