I have a DOUBLE data type column in my MySQL table and I have a value of:
14.5299
But PHP number_format rounds that value to:
14.5300
And if I just echo 14.5299, it outputs:
14.53
How can I output 14.5299 without hardcoding anything in my HTML markup?
Use
sprintf()Documentation: https://www.php.net/sprintf