Re:The trouble with 'floor' and 'ceil'
by donatj on Thursday January 07, 2016 @01:21AM
(#10856333)
I had some very similar, very troubling PHP code.
Ends up PHP floats have a configurable precision and an actual physical 32/62 bit (depending on the system) in memory value who are separate and some operations use one and some the other. It was particularly troubling because I'd hope to be able to serialize and unserialize numbers losslessly but that was not the case.
[ Parent
| on HN ]