Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php round down

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

// round up
echo ceil(1.5); // prints 2
 
PREVIOUS NEXT
Tagged: #php
ADD COMMENT
Topic
Name
8+1 =