1--TEST--
2Test return type and value for expected input atanh()
3--INI--
4precision = 14
5--FILE--
6<?php
7/*
8 * Function is implemented in ext/standard/math.c
9*/
10
11$file_path = __DIR__;
12require($file_path."/allowed_rounding_error.inc");
13
14echo "atanh  0.46211715726001 = ";
15var_dump(atanh(0.46211715726001));
16if (allowed_rounding_error(atanh(0.46211715726001), 0.5))
17{
18    echo "Pass\n";
19}
20else {
21    echo "Fail\n";
22}
23
24echo "atanh  0.99505475368673 = ";
25var_dump(atanh(0.99505475368673));
26if (allowed_rounding_error(atanh(0.99505475368673), 3.0))
27{
28    echo "Pass\n";
29}
30else {
31    echo "Fail\n";
32}
33
34
35?>
36--EXPECTF--
37atanh  0.46211715726001 = float(%f)
38Pass
39atanh  0.99505475368673 = float(%f)
40Pass
41