1--TEST--
2Test variations in usage of atan()
3--INI--
4precision = 10
5--FILE--
6<?php
7/*
8 * Function is implemented in ext/standard/math.c
9*/
10
11
12//Test atan with a different input values
13
14$values = array(23,
15        -23,
16        2.345e1,
17        -2.345e1,
18        0x17,
19        027,
20        "23",
21        "23.45",
22        "2.345e1",
23        "1000",
24        null,
25        true,
26        false);
27
28for ($i = 0; $i < count($values); $i++) {
29    $res = atan($values[$i]);
30    var_dump($res);
31}
32
33?>
34--EXPECT--
35float(1.5273454314033659)
36float(-1.5273454314033659)
37float(1.528178224770569)
38float(-1.528178224770569)
39float(1.5273454314033659)
40float(1.5273454314033659)
41float(1.5273454314033659)
42float(1.528178224770569)
43float(1.528178224770569)
44float(1.5697963271282298)
45float(0)
46float(0.7853981633974483)
47float(0)
48