Answers for "php transform 2 decimal places"

PHP
3

php parse float 2 decimal places

$num = 5;
$num = number_format($num, 2);
Posted by: Guest on June-18-2021
0

convert number to 2 decimal places in php

echo round(5366.8122270742, 2); //5366.81
Posted by: Guest on October-01-2021

Browse Popular Code Answers by Language