Answers for "round to 2 decimal places number with more then 3 decimals php"

PHP
3

php float 2 decimais

$foo = "105";
echo number_format((float)$foo, 2, '.', '');
Posted by: Guest on June-18-2020
0

2 decimal round using php

// using round() function we can roundoff float values in php
$value = 58.24365;
round($value, 2);
//result 58.24
Posted by: Guest on June-03-2020
3

php round up

//round up to nearest integer
echo(ceil(0.60) . "<br>");
//result 1
Posted by: Guest on June-09-2020

Code answers related to "round to 2 decimal places number with more then 3 decimals php"

Browse Popular Code Answers by Language