Answers for "php float to decimal"

PHP
5

php parse float 2 decimal places

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

string to decimal php

$num = (double) "10.12";
Posted by: Guest on January-26-2021

Browse Popular Code Answers by Language