Answers for "round max php"

PHP
8

php round down

// round down
echo floor(1.5); // prints 1

// round up
echo ceil(1.5); // prints 2
Posted by: Guest on May-30-2021
0

php round nearest half

$x = floor($x * 2) / 2;
Posted by: Guest on January-19-2021

Browse Popular Code Answers by Language