1--TEST--
2Test ceil() - basic function test for ceil()
3--INI--
4precision=14
5--FILE--
6<?php
7/* Prototype  : float ceil  ( float $value  )
8 * Description: Round fractions up.
9 * Source code: ext/standard/math.c
10 */
11
12echo "*** Testing ceil() : basic functionality ***\n";
13$values = array(0,
14				-0,
15				0.5,
16				-0.5,
17				1,
18				-1,
19				1.5,
20				-1.5,
21				2.6,
22				-2.6,
23				037,
24				0x5F,
25				"10.5",
26				"-10.5",
27				"3.95E3",
28				"-3.95E3",
29				"039",
30				true,
31				false,
32				null,
33				);
34
35for ($i = 0; $i < count($values); $i++) {
36	$res = ceil($values[$i]);
37	var_dump($res);
38}
39
40?>
41===Done===
42--EXPECT--
43*** Testing ceil() : basic functionality ***
44float(0)
45float(0)
46float(1)
47float(-0)
48float(1)
49float(-1)
50float(2)
51float(-1)
52float(3)
53float(-2)
54float(31)
55float(95)
56float(11)
57float(-10)
58float(3950)
59float(-3950)
60float(39)
61float(1)
62float(0)
63float(0)
64===Done===
65