… save the day. The trick is that PHP floats are in fact doubles, i.e. double-precision 64-bit numbers. They have 52 bits… “precision” option set from php.ini which affects the conversion. I’ve played with it a bit; the compiled-in and php.ini-dist values seem to vary across architectures and versions, but setting precision=16 (enough to hold…
Comment: PHP vs. BIGINT vs. float conversion caveat
… excerpt Sometimes you need to work with big numbers in PHP (gulp). For example, sometimes 32-bit identifiers are not enough… written about the mess that 64-bit integers are in PHP. But if the numbers you use do not cover 64… fully, floats might save the day. The trick is that PHP floats are in fact doubles, i.e. double-precision 64-bit numbers. They [...]
Comment: PHP vs. BIGINT vs. float conversion caveat
… its precision No, it’s not. It must not lose precision in THIS case. Refer to IEEE 754 section on 64-bit doubles (it’s a bit more trusted source than php… able to manipulate 52-bit integer values stored as doubles without any precision loss. That actually works, and might be a perfectly…
Comment: Which Linux distribution for a MySQL database server? A specific point of view.
…leave stock options untouched (like the standard 1800-line php.ini) and have small files containing only your differences… that’s on an OS release frozen months ago. Precise is bundling 5.5.17, which isn’t old….are available across OS releases. I thought I’d double check on my RHN account to see what …

