1--TEST--
2Test variations in usage of rad2deg()
3--INI--
4precision = 10
5--FILE--
6<?php
7/*
8 * Function is implemented in ext/standard/math.c
9*/
10
11
12//Test rad2deg 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        true,
25        false);
26
27for ($i = 0; $i < count($values); $i++) {
28    $res = rad2deg($values[$i]);
29    var_dump($res);
30}
31
32?>
33--EXPECT--
34float(1317.8029288008934)
35float(-1317.8029288008934)
36float(1343.5860295817804)
37float(-1343.5860295817804)
38float(1317.8029288008934)
39float(1317.8029288008934)
40float(1317.8029288008934)
41float(1343.5860295817804)
42float(1343.5860295817804)
43float(57295.77951308232)
44float(57.29577951308232)
45float(0)
46