1--TEST-- 2Tests for floor en ceil 3--FILE-- 4<?php 5 $a = ceil (-0); $b = ceil (-1); $c = ceil (-1.5); 6 $d = ceil (-1.8); $e = ceil (-2.7); 7 var_dump ($a, $b, $c, $d, $e); 8 9 $a = ceil (0); $b = ceil (0.5); $c = ceil (1); 10 $d = ceil (1.5); $e = ceil (1.8); $f = ceil (2.7); 11 var_dump ($a, $b, $c, $d, $e, $f); 12 13 $a = floor (-0); $b = floor (-0.5); $c = floor (-1); 14 $d = floor (-1.5); $e = floor (-1.8); $f = floor (-2.7); 15 var_dump ($a, $b, $c, $d, $e, $f); 16 17 $a = floor (0); $b = floor (0.5); $c = floor (1); 18 $d = floor (1.5); $e = floor (1.8); $f = floor (2.7); 19 var_dump ($a, $b, $c, $d, $e, $f); 20?> 21--EXPECT-- 22float(0) 23float(-1) 24float(-1) 25float(-1) 26float(-2) 27float(0) 28float(1) 29float(1) 30float(2) 31float(2) 32float(3) 33float(0) 34float(-1) 35float(-1) 36float(-2) 37float(-2) 38float(-3) 39float(0) 40float(0) 41float(1) 42float(1) 43float(1) 44float(2) 45