본문 바로가기

프로그램/PHP

올림 반올림 내림

ceil : 올림

floor : 내림, 버림

round : 반올림


$temp = ceil($temp);

$temp = floor($temp);

$temp = round($temp);