1--TEST-- 2Test ceil() - basic function test for ceil() 3--INI-- 4precision=14 5--FILE-- 6<?php 7echo "*** Testing ceil() : basic functionality ***\n"; 8$values = array(0, 9 -0, 10 0.5, 11 -0.5, 12 1, 13 -1, 14 1.5, 15 -1.5, 16 2.6, 17 -2.6, 18 037, 19 0x5F, 20 "10.5", 21 "-10.5", 22 "3.95E3", 23 "-3.95E3", 24 "039", 25 true, 26 false, 27 null, 28 ); 29 30for ($i = 0; $i < count($values); $i++) { 31 $res = ceil($values[$i]); 32 var_dump($res); 33} 34 35?> 36--EXPECTF-- 37*** Testing ceil() : basic functionality *** 38float(0) 39float(0) 40float(1) 41float(-0) 42float(1) 43float(-1) 44float(2) 45float(-1) 46float(3) 47float(-2) 48float(31) 49float(95) 50float(11) 51float(-10) 52float(3950) 53float(-3950) 54float(39) 55float(1) 56float(0) 57 58Deprecated: ceil(): Passing null to parameter #1 ($num) of type int|float is deprecated in %s on line %d 59float(0) 60