Requested precision of %d digits was truncated to PHP maximum of %d digits¶
Description¶
A decimal number is being represented as a string, with a precision which is above the precision available to PHP itself. Since no more data is available, the requested precision was not met.
Example¶
<?php
printf(%.988f,1.23456789e10);
?>
Literal Examples¶
Requested precision of 20 digits was truncated to PHP maximum of 14 digits
Solutions¶
Reduce the requested precision, down to 54 maximum.
Changed Behavior¶
This error may appear following an evolution in behavior, in previous versions. See ` <https://php-changed-behaviors.readthedocs.io/en/latest/behavior/.html>`_.