Expand description
How PHP prints floats.
PHP formats floats with zend_gcvt: ndigit significant digits (mode 2),
or the shortest round-trip digits when the precision setting is -1
(mode 0, exponent threshold 17), switching to exponent notation when the
decimal point is more than ndigit places right or more than 3 places
left of the digits. The mantissa always has a fraction (1.0E+25).
Constants§
- PRECISION
- The
precisionini Appwrite runs PHP with (docker/php.ini):-1, the shortest round-trip digits, so floats keep every digit when they become strings (PDO binds and fetches them as strings at this setting). PHP’s own default is 14;gcvtprints at any other setting.