Name
ec_floor — round down to the nearest integer
Synopsis
ec_floor
{ number
}
Description
ec_floor
rounds the given number down to the nearest integer.
$a = 65.43;
$b = -41.65;
$c = 43;
$floora = ec_floor $a;
$floorb = ec_floor $b;
$floorc = ec_floor $c;
#floora is 65.000000
#floorb is -42.000000
#floorc is 43.000000
Was this page helpful?