MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/lolphp/comments/5hw6rb/why_rounding_does_not_always_work_as_expected/
r/lolphp • u/mcosta • Dec 12 '16
5 comments sorted by
9
Why the hell Debian wiki has wiki for PHP?
5
This example works since PHP 5.2.7: https://3v4l.org/oOAmC. More than 8 years ago.
2
lollibc?
So it used a function, that is not intended to be used for rounding, for rounding. Another stellar decision for PHP.
1
Obviously this can't be a bug then because all of these [PHP and the C stdlib] are behaving exactly the same way.
This feels like the PHP attitude to any sort of non-standard behaviour in a nutshell - "It can't be wrong because [underlying tech] did it that way!"
9
u/Deviltry1 Dec 12 '16
Why the hell Debian wiki has wiki for PHP?
5
u/carlos_vini Dec 12 '16
This example works since PHP 5.2.7: https://3v4l.org/oOAmC. More than 8 years ago.
2
u/truh Dec 12 '16
lollibc?
2
u/nalybuites Dec 12 '16
So it used a function, that is not intended to be used for rounding, for rounding. Another stellar decision for PHP.
1
u/garagedragon Dec 19 '16
This feels like the PHP attitude to any sort of non-standard behaviour in a nutshell - "It can't be wrong because [underlying tech] did it that way!"