ec_floor

March 26, 2020 Contributors

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