■ PHP 소수점 올림/버림/반올림, 소수점 자리수 지정 ■ 문법 ceil();//올림 floor();//버림 round();//반올림 ■ 사용법 # 예제 1 $tmpValue = 2.65; ceil($tmpValue);//올림, $tmpValue = 3 floor($tmpValue);//버림, $tmpValue = 2 round($tmpValue);//반올림, $tmpValue = 3 # 예제 2 (소수점 자리수 지정) $tmpValue = 1.5178; round($tmpValue,2);//소수점 2자리 고정, $tmpValue = 1.51;