xxxxxxxxxx
$input = "63";
// NEAREST:
round($input / 100) * 100; //100
// DOWN:
floor($input / 100) * 100; //0
// UP:
ceil($input / 100) * 100; //100
xxxxxxxxxx
$input = "6";
// DOWN:
floor($input / 10) * 10; //0
// NEAREST:
round($input / 10) * 10; //10
// UP:
ceil($input / 10) * 10; //10
xxxxxxxxxx
$int = 8.998988776636;
round($int) //Will always be 9
$int = 8.344473773737377474;
round($int) //will always be 8
xxxxxxxxxx
$input = "6";
// NEAREST:
round($input / 10) * 10; //10
// DOWN:
floor($input / 10) * 10; //0
// UP:
ceil($input / 10) * 10; //10
xxxxxxxxxx
$input = "63";
// UP:
ceil($input / 100) * 100; //100
// DOWN:
floor($input / 100) * 100; //0
// NEAREST:
round($input / 100) * 100; //100
xxxxxxxxxx
$input = "6";
// UP:
ceil($input / 10) * 10; //10
// DOWN:
floor($input / 10) * 10; //0
// NEAREST:
round($input / 10) * 10; //10