Use serialize_precision for var_dump()

var_dump() is debugging functionality, so it should print
floating-point numbers accurately. We do this by switching
to serialize_precision, which (by default) will print with
as much precision as necessary to preserve the exact value
of the float.

This also affects debug_zval_dump().

Closes GH-5172.
This commit is contained in:
Nikita Popov 2020-02-12 10:27:28 +01:00
parent c3aa9132d6
commit a939805641
111 changed files with 1472 additions and 1465 deletions

View File

@ -342,6 +342,10 @@ PHP 8.0 UPGRADE NOTES
http://example.com/foo?# => query = "", fragment = ""
Previously all cases resulted in query and fragment being null.
. var_dump() and debug_zval_dump() will now print floating-point numbers
using serialize_precision rather than precision. In a default configuration,
this means that floating-point numbers are now printed with full accuracy
by these debugging functions.
- tidy:
. The $use_include_path parameter, which was not used internally, has been

View File

@ -17,6 +17,6 @@ var_dump($c);
echo "Done\n";
?>
--EXPECT--
float(2834756759.1231)
float(2834756759.1231)
float(2834756759.123123)
float(2834756759.123123)
Done

View File

@ -1,7 +1,5 @@
--TEST--
testing binary literals
--INI--
precision=14
--SKIPIF--
<?php if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only"); ?>
--FILE--
@ -126,27 +124,27 @@ float(8796093022207)
float(17592186044415)
float(35184372088831)
float(70368744177663)
float(1.4073748835533E+14)
float(2.8147497671066E+14)
float(5.6294995342131E+14)
float(1.1258999068426E+15)
float(2.2517998136852E+15)
float(4.5035996273705E+15)
float(9.007199254741E+15)
float(1.8014398509482E+16)
float(3.6028797018964E+16)
float(7.2057594037928E+16)
float(1.4411518807586E+17)
float(2.8823037615171E+17)
float(5.7646075230342E+17)
float(1.1529215046068E+18)
float(2.3058430092137E+18)
float(4.6116860184274E+18)
float(9.2233720368548E+18)
float(1.844674407371E+19)
float(-1.844674407371E+19)
float(-9.2233720368548E+18)
float(-4.6116860184274E+18)
float(140737488355327)
float(281474976710655)
float(562949953421311)
float(1125899906842623)
float(2251799813685247)
float(4503599627370495)
float(9007199254740992)
float(18014398509481984)
float(36028797018963970)
float(72057594037927940)
float(1.4411518807585587E+17)
float(2.8823037615171174E+17)
float(5.764607523034234E+17)
float(1.1529215046068468E+18)
float(2.3058430092136937E+18)
float(4.6116860184273874E+18)
float(9.223372036854775E+18)
float(1.844674407370955E+19)
float(-1.844674407370955E+19)
float(-9.223372036854775E+18)
float(-4.6116860184273874E+18)
float(-8589934591)
float(-4294967295)
int(-2147483647)

View File

@ -143,12 +143,12 @@ int(1152921504606846975)
int(2305843009213693951)
int(4611686018427387903)
int(9223372036854775807)
float(9223372036854775808)
float(18446744073709549568)
float(18446744073709549568)
float(36893488147419099136)
float(36893488147419099136)
float(-18446744073709549568)
float(9.223372036854776E+18)
float(1.844674407370955E+19)
float(1.844674407370955E+19)
float(3.68934881474191E+19)
float(3.68934881474191E+19)
float(-1.844674407370955E+19)
int(-9223372036854775807)
int(-4611686018427387903)
int(-1)

View File

@ -55,6 +55,6 @@ object(stdClass)#%d (0) {
}
array(0) {
}
float(-9.2233720368548E+18)
float(-9.2233720368548E+18)
float(-9.223372036854776E+18)
float(-9.223372036854776E+18)
Done

View File

@ -26,7 +26,7 @@ var_dump($c);
echo "Done\n";
?>
--EXPECT--
float(394758.39454545)
float(394758.39454545)
float(394758.39454545)
float(394758.39454545453)
float(394758.39454545453)
float(394758.39454545453)
Done

View File

@ -1,7 +1,7 @@
--TEST--
testing integer overflow (32bit)
--INI--
precision=14
serialize_precision=14
--SKIPIF--
<?php if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only"); ?>
--FILE--

View File

@ -88,7 +88,7 @@ int(0)
Notice: A non well formed numeric value encountered in %s on line %d
Notice: A non well formed numeric value encountered in %s on line %d
float(0.89473684210526)
float(0.8947368421052632)
Warning: A non-numeric value encountered in %s on line %d
@ -101,7 +101,7 @@ float(NAN)
Notice: A non well formed numeric value encountered in %s on line %d
Notice: A non well formed numeric value encountered in %s on line %d
float(3.0910586430935E+39)
float(3.0910586430935376E+39)
Warning: A non-numeric value encountered in %s on line %d

View File

@ -143,7 +143,7 @@ int(0)
Notice: A non well formed numeric value encountered in %s on line %d
Notice: A non well formed numeric value encountered in %s on line %d
float(0.89473684210526)
float(0.8947368421052632)
Warning: A non-numeric value encountered in %s on line %d
@ -156,7 +156,7 @@ float(NAN)
Notice: A non well formed numeric value encountered in %s on line %d
Notice: A non well formed numeric value encountered in %s on line %d
float(3.0910586430935E+39)
float(3.0910586430935376E+39)
Warning: A non-numeric value encountered in %s on line %d

View File

@ -117,7 +117,7 @@ float(1)
*** Trying string(0) ""
*** Caught Return value of {closure}() must be of type float, string returned in %s on line %d
*** Trying int(9223372036854775807)
float(9.2233720368548E+18)
float(9.223372036854776E+18)
*** Trying float(NAN)
float(NAN)
*** Trying bool(true)

View File

@ -131,7 +131,7 @@ float(1.5)
*** Caught {closure}() expects argument #1 ($f) to be of type float, string given, called in %s on line %d
*** Trying int(9223372036854775807)
float(9.2233720368548E+18)
float(9.223372036854776E+18)
*** Trying float(NAN)
float(NAN)

View File

@ -16,27 +16,27 @@ for($c = 0; $c <= 16; $c++) {
--EXPECT--
int(-16)
int(-922337203685477580)
float(1.4757395258968E+19)
float(1.4757395258967642E+19)
-----------
int(-15)
int(-922337203685477580)
float(1.3835058055282E+19)
float(1.3835058055282164E+19)
-----------
int(-14)
int(-922337203685477580)
float(1.2912720851597E+19)
float(1.2912720851596687E+19)
-----------
int(-13)
int(-922337203685477580)
float(1.1990383647911E+19)
float(1.1990383647911209E+19)
-----------
int(-12)
int(-922337203685477580)
float(1.1068046444226E+19)
float(1.1068046444225733E+19)
-----------
int(-11)
int(-922337203685477580)
float(1.014570924054E+19)
float(1.0145709240540254E+19)
-----------
int(-10)
int(-922337203685477580)
@ -124,25 +124,25 @@ int(9223372036854775800)
-----------
int(11)
int(922337203685477580)
float(1.014570924054E+19)
float(1.0145709240540254E+19)
-----------
int(12)
int(922337203685477580)
float(1.1068046444226E+19)
float(1.1068046444225733E+19)
-----------
int(13)
int(922337203685477580)
float(1.1990383647911E+19)
float(1.1990383647911209E+19)
-----------
int(14)
int(922337203685477580)
float(1.2912720851597E+19)
float(1.2912720851596687E+19)
-----------
int(15)
int(922337203685477580)
float(1.3835058055282E+19)
float(1.3835058055282164E+19)
-----------
int(16)
int(922337203685477580)
float(1.4757395258968E+19)
float(1.4757395258967642E+19)
-----------

View File

@ -11,4 +11,4 @@ var_dump(0x80000001 * -0xffffffff);
--EXPECT--
int(-9223372034707292160)
int(9223372036854775806)
float(-9.2233720390023E+18)
float(-9.22337203900226E+18)

View File

@ -14,6 +14,6 @@ echo "Done\n";
--EXPECT--
float(-100)
float(808792757210)
float(-4.5646456464565E+27)
float(-1.1276204760067E+16)
float(-4.5646456464564635E+27)
float(-11276204760067310)
Done

View File

@ -38,6 +38,6 @@ array(8) {
["ImageWidth"]=>
int(1)
["ImageLength"]=>
float(-2.5961487387524E+33)
float(-2.5961487387524236E+33)
}
}

View File

@ -12,6 +12,6 @@ var_dump($x->largenum);
echo "Done\n";
?>
--EXPECT--
float(1.2345678901235E+29)
float(1.2345678901234568E+29)
string(30) "123456789012345678901234567890"
Done

View File

@ -21,12 +21,12 @@ decode('-123456789012345678901234567890.1');
echo "Done\n";
?>
--EXPECT--
float(1.2345678901235E+29)
float(1.2345678901234568E+29)
string(30) "123456789012345678901234567890"
float(-1.2345678901235E+29)
float(-1.2345678901234568E+29)
string(31) "-123456789012345678901234567890"
float(1.2345678901235E+29)
float(1.2345678901235E+29)
float(-1.2345678901235E+29)
float(-1.2345678901235E+29)
float(1.2345678901234568E+29)
float(1.2345678901234568E+29)
float(-1.2345678901234568E+29)
float(-1.2345678901234568E+29)
Done

View File

@ -68,12 +68,12 @@ array(7) {
[2]=>
float(0)
[3]=>
float(1.0E+12)
float(1000000000000)
[4]=>
float(0.564642)
[5]=>
float(1)
[6]=>
float(8.88889E+14)
float(888889000000000)
}
done!

View File

@ -65,7 +65,7 @@ array(11) {
[5]=>
string(6) "monkey"
[6]=>
float(-0.33333333333333)
float(-0.3333333333333333)
[7]=>
array(1) {
[0]=>
@ -121,7 +121,7 @@ array(2) {
int(5)
string(6) "monkey"
int(6)
float(-0.33333333333333)
float(-0.3333333333333333)
int(7)
array(1) {
[0]=>

View File

@ -52,7 +52,7 @@ array(8) {
[1001]=>
string(6) "monkey"
[16777216]=>
float(-0.33333333333333)
float(-0.3333333333333333)
}
-- Testing arsort() --
@ -78,7 +78,7 @@ array(8) {
[0]=>
string(3) "PHP"
[16777216]=>
float(-0.33333333333333)
float(-0.3333333333333333)
}
Using SORT_REGULAR:
array(8) {
@ -102,7 +102,7 @@ array(8) {
[0]=>
string(3) "PHP"
[16777216]=>
float(-0.33333333333333)
float(-0.3333333333333333)
}
Using SORT_NUMERIC:
array(8) {
@ -126,7 +126,7 @@ array(8) {
[0]=>
string(3) "PHP"
[16777216]=>
float(-0.33333333333333)
float(-0.3333333333333333)
}
Using SORT_STRING
@ -162,14 +162,14 @@ array(8) {
["test"]=>
int(27)
[16777216]=>
float(-0.33333333333333)
float(-0.3333333333333333)
}
-- Testing asort() --
No second argument:
array(8) {
[16777216]=>
float(-0.33333333333333)
float(-0.3333333333333333)
[0]=>
string(3) "PHP"
[17]=>
@ -193,7 +193,7 @@ array(8) {
Using SORT_REGULAR:
array(8) {
[16777216]=>
float(-0.33333333333333)
float(-0.3333333333333333)
[0]=>
string(3) "PHP"
[17]=>
@ -217,7 +217,7 @@ array(8) {
Using SORT_NUMERIC:
array(8) {
[16777216]=>
float(-0.33333333333333)
float(-0.3333333333333333)
[0]=>
string(3) "PHP"
[17]=>
@ -251,7 +251,7 @@ Warning: Array to string conversion in %s on line %d
Warning: Array to string conversion in %s on line %d
array(8) {
[16777216]=>
float(-0.33333333333333)
float(-0.3333333333333333)
["test"]=>
int(27)
[-1000]=>
@ -277,7 +277,7 @@ array(8) {
No second argument:
array(8) {
[16777216]=>
float(-0.33333333333333)
float(-0.3333333333333333)
[1001]=>
string(6) "monkey"
[1000]=>
@ -301,7 +301,7 @@ array(8) {
Using SORT_REGULAR:
array(8) {
[16777216]=>
float(-0.33333333333333)
float(-0.3333333333333333)
[1001]=>
string(6) "monkey"
[1000]=>
@ -325,7 +325,7 @@ array(8) {
Using SORT_NUMERIC:
array(8) {
[16777216]=>
float(-0.33333333333333)
float(-0.3333333333333333)
[1001]=>
string(6) "monkey"
[1000]=>
@ -355,7 +355,7 @@ array(8) {
[17]=>
string(27) "PHP: Hypertext Preprocessor"
[16777216]=>
float(-0.33333333333333)
float(-0.3333333333333333)
[1001]=>
string(6) "monkey"
[1000]=>
@ -394,7 +394,7 @@ array(8) {
[1001]=>
string(6) "monkey"
[16777216]=>
float(-0.33333333333333)
float(-0.3333333333333333)
}
Using SORT_REGULAR:
array(8) {
@ -418,7 +418,7 @@ array(8) {
[1001]=>
string(6) "monkey"
[16777216]=>
float(-0.33333333333333)
float(-0.3333333333333333)
}
Using SORT_NUMERIC:
array(8) {
@ -442,7 +442,7 @@ array(8) {
[1001]=>
string(6) "monkey"
[16777216]=>
float(-0.33333333333333)
float(-0.3333333333333333)
}
Using SORT_STRING
array(8) {
@ -460,7 +460,7 @@ array(8) {
[1001]=>
string(6) "monkey"
[16777216]=>
float(-0.33333333333333)
float(-0.3333333333333333)
[17]=>
string(27) "PHP: Hypertext Preprocessor"
[5]=>
@ -492,7 +492,7 @@ array(8) {
[6]=>
string(3) "PHP"
[7]=>
float(-0.33333333333333)
float(-0.3333333333333333)
}
Using SORT_REGULAR:
array(8) {
@ -516,7 +516,7 @@ array(8) {
[6]=>
string(3) "PHP"
[7]=>
float(-0.33333333333333)
float(-0.3333333333333333)
}
Using SORT_NUMERIC:
array(8) {
@ -540,7 +540,7 @@ array(8) {
[6]=>
string(3) "PHP"
[7]=>
float(-0.33333333333333)
float(-0.3333333333333333)
}
Using SORT_STRING
@ -576,14 +576,14 @@ array(8) {
[6]=>
int(27)
[7]=>
float(-0.33333333333333)
float(-0.3333333333333333)
}
-- Testing sort() --
No second argument:
array(8) {
[0]=>
float(-0.33333333333333)
float(-0.3333333333333333)
[1]=>
string(3) "PHP"
[2]=>
@ -607,7 +607,7 @@ array(8) {
Using SORT_REGULAR:
array(8) {
[0]=>
float(-0.33333333333333)
float(-0.3333333333333333)
[1]=>
string(3) "PHP"
[2]=>
@ -631,7 +631,7 @@ array(8) {
Using SORT_NUMERIC:
array(8) {
[0]=>
float(-0.33333333333333)
float(-0.3333333333333333)
[1]=>
string(3) "PHP"
[2]=>
@ -665,7 +665,7 @@ Warning: Array to string conversion in %s on line %d
Warning: Array to string conversion in %s on line %d
array(8) {
[0]=>
float(-0.33333333333333)
float(-0.3333333333333333)
[1]=>
int(27)
[2]=>

View File

@ -31,7 +31,7 @@ var_dump ($data);
-- Testing uasort() --
array(8) {
[16777216]=>
float(-0.33333333333333)
float(-0.3333333333333333)
[-1000]=>
array(2) {
[0]=>
@ -69,7 +69,7 @@ array(8) {
[1001]=>
string(6) "monkey"
[16777216]=>
float(-0.33333333333333)
float(-0.3333333333333333)
[17]=>
string(27) "PHP: Hypertext Preprocessor"
[5]=>
@ -81,7 +81,7 @@ array(8) {
-- Testing usort() --
array(8) {
[0]=>
float(-0.33333333333333)
float(-0.3333333333333333)
[1]=>
array(2) {
[0]=>

View File

@ -117,7 +117,7 @@ array(4) {
["3.33"]=>
float(3.33)
["4.8999992284"]=>
float(4.8999992284)
float(4.89999922839999)
["33333333.333"]=>
float(33333333.333)
}

View File

@ -83,7 +83,7 @@ array(2) {
[0]=>
string(4) "zero"
["two"]=>
float(2)
float(2.00000000000001)
}
array(3) {
[0]=>
@ -97,7 +97,7 @@ array(3) {
-- Iteration 2 --
array(1) {
["two"]=>
float(2)
float(2.00000000000001)
}
array(2) {
[2]=>
@ -109,7 +109,7 @@ array(2) {
-- Iteration 3 --
array(1) {
["two"]=>
float(2)
float(2.00000000000001)
}
array(2) {
[2]=>
@ -123,7 +123,7 @@ array(2) {
[0]=>
string(4) "zero"
["two"]=>
float(2)
float(2.00000000000001)
}
array(2) {
[0]=>
@ -137,7 +137,7 @@ array(2) {
[0]=>
string(4) "zero"
["two"]=>
float(2)
float(2.00000000000001)
}
array(2) {
[2]=>
@ -161,11 +161,11 @@ array(2) {
[0]=>
string(4) "zero"
["two"]=>
float(2)
float(2.00000000000001)
}
array(2) {
[0]=>
float(2)
float(2.00000000000001)
[2]=>
float(1.0E-11)
}
@ -175,11 +175,11 @@ array(2) {
[0]=>
string(4) "zero"
["two"]=>
float(2)
float(2.00000000000001)
}
array(2) {
[2]=>
float(2)
float(2.00000000000001)
[0]=>
float(1.0E-11)
}

View File

@ -122,7 +122,7 @@ array(4) {
["f2"]=>
float(3.33)
[3]=>
float(4.8999992284)
float(4.89999922839999)
["f4"]=>
float(1.2)
}

View File

@ -114,7 +114,7 @@ array(4) {
["f2"]=>
float(3.33)
[3]=>
float(4.8999992284)
float(4.89999922839999)
["f4"]=>
float(33333333.3333)
}

View File

@ -199,7 +199,7 @@ array(4) {
["f2"]=>
float(3.33)
[0]=>
float(4.8999992284)
float(4.89999922839999)
["f4"]=>
array(2) {
[0]=>
@ -215,7 +215,7 @@ array(8) {
["f2"]=>
float(3.33)
[0]=>
float(4.8999992284)
float(4.89999922839999)
["f4"]=>
array(2) {
[0]=>

View File

@ -43,4 +43,4 @@ int(-24)
float(-1.5)
-- Testing array_product() function with negative floats --
float(-9.9999999E+15)
float(-9999999900000000)

View File

@ -181,9 +181,9 @@ array(1) {
- default argument -
array(4) {
["f4"]=>
float(33333333.3333)
float(33333333.333333)
[0]=>
float(4.8999992284)
float(4.89999922839999)
["f2"]=>
float(3.33)
["f1"]=>
@ -192,9 +192,9 @@ array(4) {
- $preserve keys = true -
array(4) {
["f4"]=>
float(33333333.3333)
float(33333333.333333)
[3]=>
float(4.8999992284)
float(4.89999922839999)
["f2"]=>
float(3.33)
["f1"]=>
@ -203,9 +203,9 @@ array(4) {
- $preserve_keys = false -
array(4) {
["f4"]=>
float(33333333.3333)
float(33333333.333333)
[0]=>
float(4.8999992284)
float(4.89999922839999)
["f2"]=>
float(3.33)
["f1"]=>

View File

@ -91,7 +91,7 @@ array(3) {
["f2"]=>
float(3.33)
[3]=>
float(4.8999992284)
float(4.89999922839999)
}
-- Iteration 5 --
array(3) {

View File

@ -209,9 +209,9 @@ array(5) {
["f2"]=>
float(3.33)
[1]=>
float(4.8999992284)
float(4.89999922839999)
["f4"]=>
float(33333333.3333)
float(33333333.333333)
}
int(7)
array(7) {
@ -226,9 +226,9 @@ array(7) {
["f2"]=>
float(3.33)
[3]=>
float(4.8999992284)
float(4.89999922839999)
["f4"]=>
float(33333333.3333)
float(33333333.333333)
}
-- Iteration 7 --
int(5)

View File

@ -2,8 +2,6 @@
Bug #35014 (array_product() always returns 0) (32bit)
--SKIPIF--
<?php if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only"); ?>
--INI--
precision=14
--FILE--
<?php
$tests = array(
@ -27,6 +25,6 @@ int(0)
int(3)
int(9)
float(1)
float(9.9999998E+15)
float(2.8404260053903E+20)
float(9999999800000000)
float(2.8404260053902914E+20)
float(8589934590)

View File

@ -28,5 +28,5 @@ int(3)
int(9)
float(1)
int(9999999800000001)
float(1.219953680145E+30)
float(3.6893488147419E+19)
float(1.219953680144986E+30)
float(3.6893488147419103E+19)

View File

@ -347,7 +347,7 @@ array(11) {
[6]=>
float(1.6)
[7]=>
float(1.7)
float(1.7000000000000002)
[8]=>
float(1.8)
[9]=>
@ -371,7 +371,7 @@ array(11) {
[6]=>
float(1.4)
[7]=>
float(1.3)
float(1.2999999999999998)
[8]=>
float(1.2)
[9]=>
@ -395,7 +395,7 @@ array(11) {
[6]=>
float(1.6)
[7]=>
float(1.7)
float(1.7000000000000002)
[8]=>
float(1.8)
[9]=>
@ -419,7 +419,7 @@ array(11) {
[6]=>
float(1.6)
[7]=>
float(1.7)
float(1.7000000000000002)
[8]=>
float(1.8)
[9]=>

View File

@ -111,13 +111,13 @@ array(11) {
[6]=>
float(-4.5555)
[7]=>
float(-3.5555)
float(-3.5555000000000003)
[8]=>
float(-2.5555)
float(-2.5555000000000003)
[9]=>
float(-1.5555)
float(-1.5555000000000003)
[10]=>
float(-0.5555)
float(-0.5555000000000003)
}
-- creating an array with low = '-10.5555' and high = '-10.5555' --
@ -143,15 +143,15 @@ array(12) {
[6]=>
float(-4.5555)
[7]=>
float(-3.5555)
float(-3.5555000000000003)
[8]=>
float(-2.5555)
float(-2.5555000000000003)
[9]=>
float(-1.5555)
float(-1.5555000000000003)
[10]=>
float(-0.5555)
float(-0.5555000000000003)
[11]=>
float(0.4445)
float(0.4444999999999997)
}
-- creating an array with low = '-10.5555' and high = '' --
@ -171,13 +171,13 @@ array(11) {
[6]=>
float(-4.5555)
[7]=>
float(-3.5555)
float(-3.5555000000000003)
[8]=>
float(-2.5555)
float(-2.5555000000000003)
[9]=>
float(-1.5555)
float(-1.5555000000000003)
[10]=>
float(-0.5555)
float(-0.5555000000000003)
}
-- creating an array with low = '-10.5555' and high = '' --
@ -197,13 +197,13 @@ array(11) {
[6]=>
float(-4.5555)
[7]=>
float(-3.5555)
float(-3.5555000000000003)
[8]=>
float(-2.5555)
float(-2.5555000000000003)
[9]=>
float(-1.5555)
float(-1.5555000000000003)
[10]=>
float(-0.5555)
float(-0.5555000000000003)
}
-- creating an array with low = '-10.5555' and high = '' --
@ -223,13 +223,13 @@ array(11) {
[6]=>
float(-4.5555)
[7]=>
float(-3.5555)
float(-3.5555000000000003)
[8]=>
float(-2.5555)
float(-2.5555000000000003)
[9]=>
float(-1.5555)
float(-1.5555000000000003)
[10]=>
float(-0.5555)
float(-0.5555000000000003)
}
-- creating an array with low = '-10.5555' and high = 'Array' --
@ -249,15 +249,15 @@ array(12) {
[6]=>
float(-4.5555)
[7]=>
float(-3.5555)
float(-3.5555000000000003)
[8]=>
float(-2.5555)
float(-2.5555000000000003)
[9]=>
float(-1.5555)
float(-1.5555000000000003)
[10]=>
float(-0.5555)
float(-0.5555000000000003)
[11]=>
float(0.4445)
float(0.4444999999999997)
}
-- creating an array with low = '1' and high = 'ABCD' --

View File

@ -34,7 +34,7 @@ array(14) {
[11]=>
float(123456789012)
[12]=>
float(1.23456789012E+12)
float(1234567890123)
[13]=>
float(1.23456789012E+19)
float(1.2345678901234567E+19)
}

View File

@ -4,8 +4,6 @@ Test gettype() & settype() functions : usage variations
<?php
if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only");
?>
--INI--
precision=14
--FILE--
<?php
/* Prototype: string gettype ( mixed $var );
@ -278,7 +276,7 @@ string(6) "double"
-- Iteration 20 --
string(6) "string"
bool(true)
float(2.9743947493287E+21)
float(2.974394749328742E+21)
string(6) "double"
-- Iteration 21 --
string(6) "string"
@ -308,7 +306,7 @@ string(6) "double"
-- Iteration 26 --
string(6) "string"
bool(true)
float(2.9743947493287E+21)
float(2.974394749328742E+21)
string(6) "double"
-- Iteration 27 --
string(6) "string"
@ -673,7 +671,7 @@ string(6) "double"
-- Iteration 20 --
string(6) "string"
bool(true)
float(2.9743947493287E+21)
float(2.974394749328742E+21)
string(6) "double"
-- Iteration 21 --
string(6) "string"
@ -703,7 +701,7 @@ string(6) "double"
-- Iteration 26 --
string(6) "string"
bool(true)
float(2.9743947493287E+21)
float(2.974394749328742E+21)
string(6) "double"
-- Iteration 27 --
string(6) "string"

View File

@ -29,7 +29,7 @@ foreach ($longVals as $longVal) {
--- testing: 9223372036854775807 ---
int(9223372036854775807)
--- testing: -9223372036854775808 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 2147483647 ---
int(2147483647)
--- testing: -2147483648 ---
@ -51,8 +51,8 @@ int(4294967293)
--- testing: 9223372036854775806 ---
int(9223372036854775806)
--- testing: 9.2233720368548E+18 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -9223372036854775807 ---
int(9223372036854775807)
--- testing: -9.2233720368548E+18 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)

View File

@ -47,6 +47,6 @@ float(NAN)
Notice: A non well formed numeric value encountered in %s on line %d
float(NAN)
float(1.570796327)
float(1.5707963267948966)
float(0)
float(1.570796327)
float(1.5707963267948966)

View File

@ -4,6 +4,8 @@ Test acosh function : 64bit long tests
<?php
if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--INI--
serialize_precision=14
--FILE--
<?php

View File

@ -34,19 +34,19 @@ for ($i = 0; $i < count($values); $i++) {
?>
--EXPECTF--
float(3.828168471)
float(3.8281684713331012)
float(NAN)
float(3.847562739)
float(3.8475627390640357)
float(NAN)
float(3.828168471)
float(3.828168471)
float(3.828168471)
float(3.847562739)
float(3.847562739)
float(7.60090221)
float(3.8281684713331012)
float(3.8281684713331012)
float(3.8281684713331012)
float(3.8475627390640357)
float(3.8475627390640357)
float(7.600902209541989)
Notice: A non well formed numeric value encountered in %s on line %d
float(7.60090221)
float(7.600902209541989)
float(NAN)
float(0)
float(NAN)

View File

@ -48,5 +48,5 @@ float(NAN)
Notice: A non well formed numeric value encountered in %s on line %d
float(NAN)
float(0)
float(1.570796327)
float(1.5707963267948966)
float(0)

View File

@ -4,6 +4,8 @@ Test asinh function : 64bit long tests
<?php
if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--INI--
serialize_precision=14
--FILE--
<?php

View File

@ -1,7 +1,7 @@
--TEST--
Test variations in usage of asinh()
--INI--
precision = 10
serialize_precision = 10
--FILE--
<?php
/*

View File

@ -1,7 +1,7 @@
--TEST--
Test atan2() - basic function test of atan2()
--INI--
precision=14
serialize_precision=14
--FILE--
<?php
$valuesy = array(23,

View File

@ -31,332 +31,332 @@ foreach ($longVals as $longVal) {
?>
--EXPECT--
--- testing: 9223372036854775807, 0 ---
float(1.5707963267949)
float(1.5707963267948966)
--- testing: 9223372036854775807, 1 ---
float(1.5707963267949)
float(1.5707963267948966)
--- testing: 9223372036854775807, -1 ---
float(1.5707963267949)
float(1.5707963267948966)
--- testing: 9223372036854775807, 7 ---
float(1.5707963267949)
float(1.5707963267948966)
--- testing: 9223372036854775807, 9 ---
float(1.5707963267949)
float(1.5707963267948966)
--- testing: 9223372036854775807, 65 ---
float(1.5707963267949)
float(1.5707963267948966)
--- testing: 9223372036854775807, -44 ---
float(1.5707963267949)
float(1.5707963267948966)
--- testing: 9223372036854775807, 2147483647 ---
float(1.5707963265621)
float(1.570796326562066)
--- testing: 9223372036854775807, -2147483648 ---
float(1.5707963270277)
float(1.5707963270277272)
--- testing: 9223372036854775807, 9223372036854775807 ---
float(0.78539816339745)
float(0.7853981633974483)
--- testing: 9223372036854775807, -9223372036854775808 ---
float(2.3561944901923)
float(2.356194490192345)
--- testing: -9223372036854775808, 0 ---
float(-1.5707963267949)
float(-1.5707963267948966)
--- testing: -9223372036854775808, 1 ---
float(-1.5707963267949)
float(-1.5707963267948966)
--- testing: -9223372036854775808, -1 ---
float(-1.5707963267949)
float(-1.5707963267948966)
--- testing: -9223372036854775808, 7 ---
float(-1.5707963267949)
float(-1.5707963267948966)
--- testing: -9223372036854775808, 9 ---
float(-1.5707963267949)
float(-1.5707963267948966)
--- testing: -9223372036854775808, 65 ---
float(-1.5707963267949)
float(-1.5707963267948966)
--- testing: -9223372036854775808, -44 ---
float(-1.5707963267949)
float(-1.5707963267948966)
--- testing: -9223372036854775808, 2147483647 ---
float(-1.5707963265621)
float(-1.570796326562066)
--- testing: -9223372036854775808, -2147483648 ---
float(-1.5707963270277)
float(-1.5707963270277272)
--- testing: -9223372036854775808, 9223372036854775807 ---
float(-0.78539816339745)
float(-0.7853981633974483)
--- testing: -9223372036854775808, -9223372036854775808 ---
float(-2.3561944901923)
float(-2.356194490192345)
--- testing: 2147483647, 0 ---
float(1.5707963267949)
float(1.5707963267948966)
--- testing: 2147483647, 1 ---
float(1.5707963263292)
float(1.5707963263292353)
--- testing: 2147483647, -1 ---
float(1.5707963272606)
float(1.5707963272605578)
--- testing: 2147483647, 7 ---
float(1.5707963235353)
float(1.5707963235352675)
--- testing: 2147483647, 9 ---
float(1.5707963226039)
float(1.570796322603945)
--- testing: 2147483647, 65 ---
float(1.5707962965269)
float(1.5707962965269129)
--- testing: 2147483647, -44 ---
float(1.570796347284)
float(1.5707963472839932)
--- testing: 2147483647, 2147483647 ---
float(0.78539816339745)
float(0.7853981633974483)
--- testing: 2147483647, -2147483648 ---
float(2.3561944904252)
float(2.3561944904251755)
--- testing: 2147483647, 9223372036854775807 ---
float(2.3283064354545E-10)
float(2.328306435454494E-10)
--- testing: 2147483647, -9223372036854775808 ---
float(3.141592653357)
float(3.1415926533569625)
--- testing: -2147483648, 0 ---
float(-1.5707963267949)
float(-1.5707963267948966)
--- testing: -2147483648, 1 ---
float(-1.5707963263292)
float(-1.5707963263292353)
--- testing: -2147483648, -1 ---
float(-1.5707963272606)
float(-1.5707963272605578)
--- testing: -2147483648, 7 ---
float(-1.5707963235353)
float(-1.5707963235352675)
--- testing: -2147483648, 9 ---
float(-1.5707963226039)
float(-1.570796322603945)
--- testing: -2147483648, 65 ---
float(-1.5707962965269)
float(-1.5707962965269129)
--- testing: -2147483648, -44 ---
float(-1.570796347284)
float(-1.5707963472839932)
--- testing: -2147483648, 2147483647 ---
float(-0.78539816363028)
float(-0.7853981636302789)
--- testing: -2147483648, -2147483648 ---
float(-2.3561944901923)
float(-2.356194490192345)
--- testing: -2147483648, 9223372036854775807 ---
float(-2.3283064365387E-10)
float(-2.3283064365386963E-10)
--- testing: -2147483648, -9223372036854775808 ---
float(-3.141592653357)
float(-3.1415926533569625)
--- testing: 9223372034707292160, 0 ---
float(1.5707963267949)
float(1.5707963267948966)
--- testing: 9223372034707292160, 1 ---
float(1.5707963267949)
float(1.5707963267948966)
--- testing: 9223372034707292160, -1 ---
float(1.5707963267949)
float(1.5707963267948966)
--- testing: 9223372034707292160, 7 ---
float(1.5707963267949)
float(1.5707963267948966)
--- testing: 9223372034707292160, 9 ---
float(1.5707963267949)
float(1.5707963267948966)
--- testing: 9223372034707292160, 65 ---
float(1.5707963267949)
float(1.5707963267948966)
--- testing: 9223372034707292160, -44 ---
float(1.5707963267949)
float(1.5707963267948966)
--- testing: 9223372034707292160, 2147483647 ---
float(1.5707963265621)
float(1.570796326562066)
--- testing: 9223372034707292160, -2147483648 ---
float(1.5707963270277)
float(1.5707963270277272)
--- testing: 9223372034707292160, 9223372036854775807 ---
float(0.78539816328103)
float(0.785398163281033)
--- testing: 9223372034707292160, -9223372036854775808 ---
float(2.3561944903088)
float(2.35619449030876)
--- testing: -9223372034707292160, 0 ---
float(-1.5707963267949)
float(-1.5707963267948966)
--- testing: -9223372034707292160, 1 ---
float(-1.5707963267949)
float(-1.5707963267948966)
--- testing: -9223372034707292160, -1 ---
float(-1.5707963267949)
float(-1.5707963267948966)
--- testing: -9223372034707292160, 7 ---
float(-1.5707963267949)
float(-1.5707963267948966)
--- testing: -9223372034707292160, 9 ---
float(-1.5707963267949)
float(-1.5707963267948966)
--- testing: -9223372034707292160, 65 ---
float(-1.5707963267949)
float(-1.5707963267948966)
--- testing: -9223372034707292160, -44 ---
float(-1.5707963267949)
float(-1.5707963267948966)
--- testing: -9223372034707292160, 2147483647 ---
float(-1.5707963265621)
float(-1.570796326562066)
--- testing: -9223372034707292160, -2147483648 ---
float(-1.5707963270277)
float(-1.5707963270277272)
--- testing: -9223372034707292160, 9223372036854775807 ---
float(-0.78539816328103)
float(-0.785398163281033)
--- testing: -9223372034707292160, -9223372036854775808 ---
float(-2.3561944903088)
float(-2.35619449030876)
--- testing: 2147483648, 0 ---
float(1.5707963267949)
float(1.5707963267948966)
--- testing: 2147483648, 1 ---
float(1.5707963263292)
float(1.5707963263292353)
--- testing: 2147483648, -1 ---
float(1.5707963272606)
float(1.5707963272605578)
--- testing: 2147483648, 7 ---
float(1.5707963235353)
float(1.5707963235352675)
--- testing: 2147483648, 9 ---
float(1.5707963226039)
float(1.570796322603945)
--- testing: 2147483648, 65 ---
float(1.5707962965269)
float(1.5707962965269129)
--- testing: 2147483648, -44 ---
float(1.570796347284)
float(1.5707963472839932)
--- testing: 2147483648, 2147483647 ---
float(0.78539816363028)
float(0.7853981636302789)
--- testing: 2147483648, -2147483648 ---
float(2.3561944901923)
float(2.356194490192345)
--- testing: 2147483648, 9223372036854775807 ---
float(2.3283064365387E-10)
float(2.3283064365386963E-10)
--- testing: 2147483648, -9223372036854775808 ---
float(3.141592653357)
float(3.1415926533569625)
--- testing: -2147483649, 0 ---
float(-1.5707963267949)
float(-1.5707963267948966)
--- testing: -2147483649, 1 ---
float(-1.5707963263292)
float(-1.5707963263292353)
--- testing: -2147483649, -1 ---
float(-1.5707963272606)
float(-1.5707963272605578)
--- testing: -2147483649, 7 ---
float(-1.5707963235353)
float(-1.5707963235352675)
--- testing: -2147483649, 9 ---
float(-1.5707963226039)
float(-1.570796322603945)
--- testing: -2147483649, 65 ---
float(-1.5707962965269)
float(-1.5707962965269129)
--- testing: -2147483649, -44 ---
float(-1.570796347284)
float(-1.5707963472839932)
--- testing: -2147483649, 2147483647 ---
float(-0.78539816386311)
float(-0.7853981638631096)
--- testing: -2147483649, -2147483648 ---
float(-2.3561944899595)
float(-2.356194489959514)
--- testing: -2147483649, 9223372036854775807 ---
float(-2.3283064376229E-10)
float(-2.3283064376228985E-10)
--- testing: -2147483649, -9223372036854775808 ---
float(-3.141592653357)
float(-3.1415926533569625)
--- testing: 4294967294, 0 ---
float(1.5707963267949)
float(1.5707963267948966)
--- testing: 4294967294, 1 ---
float(1.5707963265621)
float(1.570796326562066)
--- testing: 4294967294, -1 ---
float(1.5707963270277)
float(1.5707963270277272)
--- testing: 4294967294, 7 ---
float(1.5707963251651)
float(1.570796325165082)
--- testing: 4294967294, 9 ---
float(1.5707963246994)
float(1.5707963246994208)
--- testing: 4294967294, 65 ---
float(1.5707963116609)
float(1.5707963116609047)
--- testing: 4294967294, -44 ---
float(1.5707963370394)
float(1.5707963370394449)
--- testing: 4294967294, 2147483647 ---
float(1.1071487177941)
float(1.1071487177940904)
--- testing: 4294967294, -2147483648 ---
float(2.034443935982)
float(2.034443935981967)
--- testing: 4294967294, 9223372036854775807 ---
float(4.656612870909E-10)
float(4.656612870908988E-10)
--- testing: 4294967294, -9223372036854775808 ---
float(3.1415926531241)
float(3.141592653124132)
--- testing: 4294967295, 0 ---
float(1.5707963267949)
float(1.5707963267948966)
--- testing: 4294967295, 1 ---
float(1.5707963265621)
float(1.570796326562066)
--- testing: 4294967295, -1 ---
float(1.5707963270277)
float(1.5707963270277272)
--- testing: 4294967295, 7 ---
float(1.5707963251651)
float(1.570796325165082)
--- testing: 4294967295, 9 ---
float(1.5707963246994)
float(1.5707963246994208)
--- testing: 4294967295, 65 ---
float(1.5707963116609)
float(1.5707963116609047)
--- testing: 4294967295, -44 ---
float(1.5707963370394)
float(1.5707963370394449)
--- testing: 4294967295, 2147483647 ---
float(1.1071487178872)
float(1.1071487178872228)
--- testing: 4294967295, -2147483648 ---
float(2.0344439358888)
float(2.034443935888835)
--- testing: 4294967295, 9223372036854775807 ---
float(4.6566128719932E-10)
float(4.6566128719931904E-10)
--- testing: 4294967295, -9223372036854775808 ---
float(3.1415926531241)
float(3.141592653124132)
--- testing: 4294967293, 0 ---
float(1.5707963267949)
float(1.5707963267948966)
--- testing: 4294967293, 1 ---
float(1.5707963265621)
float(1.570796326562066)
--- testing: 4294967293, -1 ---
float(1.5707963270277)
float(1.5707963270277272)
--- testing: 4294967293, 7 ---
float(1.5707963251651)
float(1.570796325165082)
--- testing: 4294967293, 9 ---
float(1.5707963246994)
float(1.5707963246994208)
--- testing: 4294967293, 65 ---
float(1.5707963116609)
float(1.5707963116609047)
--- testing: 4294967293, -44 ---
float(1.5707963370394)
float(1.5707963370394449)
--- testing: 4294967293, 2147483647 ---
float(1.107148717701)
float(1.1071487177009582)
--- testing: 4294967293, -2147483648 ---
float(2.0344439360751)
float(2.0344439360750997)
--- testing: 4294967293, 9223372036854775807 ---
float(4.6566128698248E-10)
float(4.656612869824786E-10)
--- testing: 4294967293, -9223372036854775808 ---
float(3.1415926531241)
float(3.141592653124132)
--- testing: 9223372036854775806, 0 ---
float(1.5707963267949)
float(1.5707963267948966)
--- testing: 9223372036854775806, 1 ---
float(1.5707963267949)
float(1.5707963267948966)
--- testing: 9223372036854775806, -1 ---
float(1.5707963267949)
float(1.5707963267948966)
--- testing: 9223372036854775806, 7 ---
float(1.5707963267949)
float(1.5707963267948966)
--- testing: 9223372036854775806, 9 ---
float(1.5707963267949)
float(1.5707963267948966)
--- testing: 9223372036854775806, 65 ---
float(1.5707963267949)
float(1.5707963267948966)
--- testing: 9223372036854775806, -44 ---
float(1.5707963267949)
float(1.5707963267948966)
--- testing: 9223372036854775806, 2147483647 ---
float(1.5707963265621)
float(1.570796326562066)
--- testing: 9223372036854775806, -2147483648 ---
float(1.5707963270277)
float(1.5707963270277272)
--- testing: 9223372036854775806, 9223372036854775807 ---
float(0.78539816339745)
float(0.7853981633974483)
--- testing: 9223372036854775806, -9223372036854775808 ---
float(2.3561944901923)
float(2.356194490192345)
--- testing: 9.2233720368548E+18, 0 ---
float(1.5707963267949)
float(1.5707963267948966)
--- testing: 9.2233720368548E+18, 1 ---
float(1.5707963267949)
float(1.5707963267948966)
--- testing: 9.2233720368548E+18, -1 ---
float(1.5707963267949)
float(1.5707963267948966)
--- testing: 9.2233720368548E+18, 7 ---
float(1.5707963267949)
float(1.5707963267948966)
--- testing: 9.2233720368548E+18, 9 ---
float(1.5707963267949)
float(1.5707963267948966)
--- testing: 9.2233720368548E+18, 65 ---
float(1.5707963267949)
float(1.5707963267948966)
--- testing: 9.2233720368548E+18, -44 ---
float(1.5707963267949)
float(1.5707963267948966)
--- testing: 9.2233720368548E+18, 2147483647 ---
float(1.5707963265621)
float(1.570796326562066)
--- testing: 9.2233720368548E+18, -2147483648 ---
float(1.5707963270277)
float(1.5707963270277272)
--- testing: 9.2233720368548E+18, 9223372036854775807 ---
float(0.78539816339745)
float(0.7853981633974483)
--- testing: 9.2233720368548E+18, -9223372036854775808 ---
float(2.3561944901923)
float(2.356194490192345)
--- testing: -9223372036854775807, 0 ---
float(-1.5707963267949)
float(-1.5707963267948966)
--- testing: -9223372036854775807, 1 ---
float(-1.5707963267949)
float(-1.5707963267948966)
--- testing: -9223372036854775807, -1 ---
float(-1.5707963267949)
float(-1.5707963267948966)
--- testing: -9223372036854775807, 7 ---
float(-1.5707963267949)
float(-1.5707963267948966)
--- testing: -9223372036854775807, 9 ---
float(-1.5707963267949)
float(-1.5707963267948966)
--- testing: -9223372036854775807, 65 ---
float(-1.5707963267949)
float(-1.5707963267948966)
--- testing: -9223372036854775807, -44 ---
float(-1.5707963267949)
float(-1.5707963267948966)
--- testing: -9223372036854775807, 2147483647 ---
float(-1.5707963265621)
float(-1.570796326562066)
--- testing: -9223372036854775807, -2147483648 ---
float(-1.5707963270277)
float(-1.5707963270277272)
--- testing: -9223372036854775807, 9223372036854775807 ---
float(-0.78539816339745)
float(-0.7853981633974483)
--- testing: -9223372036854775807, -9223372036854775808 ---
float(-2.3561944901923)
float(-2.356194490192345)
--- testing: -9.2233720368548E+18, 0 ---
float(-1.5707963267949)
float(-1.5707963267948966)
--- testing: -9.2233720368548E+18, 1 ---
float(-1.5707963267949)
float(-1.5707963267948966)
--- testing: -9.2233720368548E+18, -1 ---
float(-1.5707963267949)
float(-1.5707963267948966)
--- testing: -9.2233720368548E+18, 7 ---
float(-1.5707963267949)
float(-1.5707963267948966)
--- testing: -9.2233720368548E+18, 9 ---
float(-1.5707963267949)
float(-1.5707963267948966)
--- testing: -9.2233720368548E+18, 65 ---
float(-1.5707963267949)
float(-1.5707963267948966)
--- testing: -9.2233720368548E+18, -44 ---
float(-1.5707963267949)
float(-1.5707963267948966)
--- testing: -9.2233720368548E+18, 2147483647 ---
float(-1.5707963265621)
float(-1.570796326562066)
--- testing: -9.2233720368548E+18, -2147483648 ---
float(-1.5707963270277)
float(-1.5707963270277272)
--- testing: -9.2233720368548E+18, 9223372036854775807 ---
float(-0.78539816339745)
float(-0.7853981633974483)
--- testing: -9.2233720368548E+18, -9223372036854775808 ---
float(-2.3561944901923)
float(-2.356194490192345)

View File

@ -27,32 +27,32 @@ foreach ($longVals as $longVal) {
?>
--EXPECT--
--- testing: 9223372036854775807 ---
float(1.5707963267949)
float(1.5707963267948966)
--- testing: -9223372036854775808 ---
float(-1.5707963267949)
float(-1.5707963267948966)
--- testing: 2147483647 ---
float(1.5707963263292)
float(1.5707963263292353)
--- testing: -2147483648 ---
float(-1.5707963263292)
float(-1.5707963263292353)
--- testing: 9223372034707292160 ---
float(1.5707963267949)
float(1.5707963267948966)
--- testing: -9223372034707292160 ---
float(-1.5707963267949)
float(-1.5707963267948966)
--- testing: 2147483648 ---
float(1.5707963263292)
float(1.5707963263292353)
--- testing: -2147483649 ---
float(-1.5707963263292)
float(-1.5707963263292353)
--- testing: 4294967294 ---
float(1.5707963265621)
float(1.570796326562066)
--- testing: 4294967295 ---
float(1.5707963265621)
float(1.570796326562066)
--- testing: 4294967293 ---
float(1.5707963265621)
float(1.570796326562066)
--- testing: 9223372036854775806 ---
float(1.5707963267949)
float(1.5707963267948966)
--- testing: 9.2233720368548E+18 ---
float(1.5707963267949)
float(1.5707963267948966)
--- testing: -9223372036854775807 ---
float(-1.5707963267949)
float(-1.5707963267948966)
--- testing: -9.2233720368548E+18 ---
float(-1.5707963267949)
float(-1.5707963267948966)

View File

@ -34,19 +34,19 @@ for ($i = 0; $i < count($values); $i++) {
?>
--EXPECTF--
float(1.527345431)
float(-1.527345431)
float(1.528178225)
float(-1.528178225)
float(1.527345431)
float(1.527345431)
float(1.527345431)
float(1.528178225)
float(1.528178225)
float(1.569796327)
float(1.5273454314033659)
float(-1.5273454314033659)
float(1.528178224770569)
float(-1.528178224770569)
float(1.5273454314033659)
float(1.5273454314033659)
float(1.5273454314033659)
float(1.528178224770569)
float(1.528178224770569)
float(1.5697963271282298)
Notice: A non well formed numeric value encountered in %s on line %d
float(1.569796327)
float(1.5697963271282298)
float(0)
float(0.7853981634)
float(0.7853981633974483)
float(0)

View File

@ -34,15 +34,15 @@ foreach ($binLongStrs as $strVal) {
--- testing: 0111111111111111111111111111111111111111111111111111111111111111 ---
int(9223372036854775807)
--- testing: 1111111111111111111111111111111111111111111111111111111111111111 ---
float(1.844674407371E+19)
float(1.8446744073709552E+19)
--- testing: 01111111111111111111111111111111 ---
int(2147483647)
--- testing: 11111111111111111111111111111111 ---
int(4294967295)
--- testing: 01111111111111111111111111111111111111111111111111111111111111111 ---
float(1.844674407371E+19)
float(1.8446744073709552E+19)
--- testing: 11111111111111111111111111111111111111111111111111111111111111111 ---
float(3.6893488147419E+19)
float(3.6893488147419103E+19)
--- testing: 011111111111111111111111111111111 ---
int(4294967295)
--- testing: 111111111111111111111111111111111 ---

View File

@ -27,17 +27,17 @@ foreach ($longVals as $longVal) {
?>
--EXPECT--
--- testing: 9223372036854775807 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -9223372036854775808 ---
float(-9.2233720368548E+18)
float(-9.223372036854776E+18)
--- testing: 2147483647 ---
float(2147483647)
--- testing: -2147483648 ---
float(-2147483648)
--- testing: 9223372034707292160 ---
float(9.2233720347073E+18)
float(9.223372034707292E+18)
--- testing: -9223372034707292160 ---
float(-9.2233720347073E+18)
float(-9.223372034707292E+18)
--- testing: 2147483648 ---
float(2147483648)
--- testing: -2147483649 ---
@ -49,10 +49,10 @@ float(4294967295)
--- testing: 4294967293 ---
float(4294967293)
--- testing: 9223372036854775806 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9.2233720368548E+18 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -9223372036854775807 ---
float(-9.2233720368548E+18)
float(-9.223372036854776E+18)
--- testing: -9.2233720368548E+18 ---
float(-9.2233720368548E+18)
float(-9.223372036854776E+18)

View File

@ -44,22 +44,22 @@ echo "NAN= ";
var_dump(NAN);
?>
--EXPECT--
M_E= float(2.718281828459)
M_LOG2E= float(1.442695040889)
M_LOG10E= float(0.43429448190325)
M_LN2= float(0.69314718055995)
M_LN10= float(2.302585092994)
M_PI= float(3.1415926535898)
M_PI_2= float(1.5707963267949)
M_PI_4= float(0.78539816339745)
M_1_PI= float(0.31830988618379)
M_2_PI= float(0.63661977236758)
M_SQRTPI= float(1.7724538509055)
M_2_SQRTPI= float(1.1283791670955)
M_LNPI= float(1.1447298858494)
M_EULER= float(0.57721566490153)
M_SQRT2= float(1.4142135623731)
M_SQRT1_2= float(0.70710678118655)
M_SQRT3= float(1.7320508075689)
M_E= float(2.718281828459045)
M_LOG2E= float(1.4426950408889634)
M_LOG10E= float(0.4342944819032518)
M_LN2= float(0.6931471805599453)
M_LN10= float(2.302585092994046)
M_PI= float(3.141592653589793)
M_PI_2= float(1.5707963267948966)
M_PI_4= float(0.7853981633974483)
M_1_PI= float(0.3183098861837907)
M_2_PI= float(0.6366197723675814)
M_SQRTPI= float(1.772453850905516)
M_2_SQRTPI= float(1.1283791670955126)
M_LNPI= float(1.1447298858494002)
M_EULER= float(0.5772156649015329)
M_SQRT2= float(1.4142135623730951)
M_SQRT1_2= float(0.7071067811865476)
M_SQRT3= float(1.7320508075688772)
INF= float(INF)
NAN= float(NAN)

View File

@ -4,6 +4,8 @@ Test cos function : 64bit long tests
<?php
if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--INI--
serialize_precision=14
--FILE--
<?php

View File

@ -1,7 +1,7 @@
--TEST--
Test variations in usage of cos()
--INI--
precision = 10
serialize_precision = 10
--FILE--
<?php
/*

View File

@ -1,7 +1,7 @@
--TEST--
Test variations in usage of cosh()
--INI--
precision = 10
serialize_precision = 10
--FILE--
<?php
/*

View File

@ -27,32 +27,32 @@ foreach ($longVals as $longVal) {
?>
--EXPECT--
--- testing: 9223372036854775807 ---
float(1.6097821017949E+17)
float(1.6097821017949162E+17)
--- testing: -9223372036854775808 ---
float(-1.6097821017949E+17)
float(-1.6097821017949162E+17)
--- testing: 2147483647 ---
float(37480660.272886)
float(37480660.27288565)
--- testing: -2147483648 ---
float(-37480660.290339)
float(-37480660.29033894)
--- testing: 9223372034707292160 ---
float(1.6097821014201E+17)
float(1.6097821014201098E+17)
--- testing: -9223372034707292160 ---
float(-1.6097821014201E+17)
float(-1.6097821014201098E+17)
--- testing: 2147483648 ---
float(37480660.290339)
float(37480660.29033894)
--- testing: -2147483649 ---
float(-37480660.307792)
float(-37480660.30779223)
--- testing: 4294967294 ---
float(74961320.545771)
float(74961320.5457713)
--- testing: 4294967295 ---
float(74961320.563225)
float(74961320.5632246)
--- testing: 4294967293 ---
float(74961320.528318)
--- testing: 9223372036854775806 ---
float(1.6097821017949E+17)
float(1.6097821017949162E+17)
--- testing: 9.2233720368548E+18 ---
float(1.6097821017949E+17)
float(1.6097821017949162E+17)
--- testing: -9223372036854775807 ---
float(-1.6097821017949E+17)
float(-1.6097821017949162E+17)
--- testing: -9.2233720368548E+18 ---
float(-1.6097821017949E+17)
float(-1.6097821017949162E+17)

View File

@ -34,19 +34,19 @@ for ($i = 0; $i < count($values); $i++) {
?>
--EXPECTF--
float(0.401425728)
float(-0.401425728)
float(0.4092797096)
float(-0.4092797096)
float(0.401425728)
float(0.401425728)
float(0.401425728)
float(0.4092797096)
float(0.4092797096)
float(17.45329252)
float(0.40142572795869574)
float(-0.40142572795869574)
float(0.40927970959267024)
float(-0.40927970959267024)
float(0.40142572795869574)
float(0.40142572795869574)
float(0.40142572795869574)
float(0.40927970959267024)
float(0.40927970959267024)
float(17.453292519943293)
Notice: A non well formed numeric value encountered in %s on line %d
float(17.45329252)
float(17.453292519943293)
float(0)
float(0.01745329252)
float(0.017453292519943295)
float(0)

View File

@ -1,7 +1,7 @@
--TEST--
Test exp() - basic function test for exp()
--INI--
precision=14
serialize_precision=14
--FILE--
<?php
$values = array(10,

View File

@ -1,7 +1,7 @@
--TEST--
Test expm1() - basic function test for expm1()
--INI--
precision=14
serialize_precision=14
--FILE--
<?php
/* Prototype : float expm1 ( float $arg )

View File

@ -41,8 +41,8 @@ var_dump(fdiv(NAN, 0.));
?>
--EXPECT--
float(3.3333333333333)
float(3.3333333333333)
float(3.3333333333333335)
float(3.3333333333333335)
float(-4)
float(-4)

View File

@ -27,17 +27,17 @@ foreach ($longVals as $longVal) {
?>
--EXPECT--
--- testing: 9223372036854775807 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -9223372036854775808 ---
float(-9.2233720368548E+18)
float(-9.223372036854776E+18)
--- testing: 2147483647 ---
float(2147483647)
--- testing: -2147483648 ---
float(-2147483648)
--- testing: 9223372034707292160 ---
float(9.2233720347073E+18)
float(9.223372034707292E+18)
--- testing: -9223372034707292160 ---
float(-9.2233720347073E+18)
float(-9.223372034707292E+18)
--- testing: 2147483648 ---
float(2147483648)
--- testing: -2147483649 ---
@ -49,10 +49,10 @@ float(4294967295)
--- testing: 4294967293 ---
float(4294967293)
--- testing: 9223372036854775806 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9.2233720368548E+18 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -9223372036854775807 ---
float(-9.2233720368548E+18)
float(-9.223372036854776E+18)
--- testing: -9.2233720368548E+18 ---
float(-9.2233720368548E+18)
float(-9.223372036854776E+18)

View File

@ -47,7 +47,7 @@ float(4)
float(0)
float(0)
float(0)
float(1.7)
float(1.700000000000018)
float(4)
float(NAN)
float(0)
@ -61,7 +61,7 @@ float(-4)
float(-0)
float(-0)
float(-0)
float(-1.7)
float(-1.700000000000018)
float(-4)
float(NAN)
float(-0)
@ -75,7 +75,7 @@ float(4.5)
float(0.5)
float(0.5)
float(0.5)
float(2.2)
float(2.200000000000018)
float(4.5)
float(NAN)
float(0.5)
@ -89,7 +89,7 @@ float(-4.5)
float(-0.5)
float(-0.5)
float(-0.5)
float(-2.2)
float(-2.200000000000018)
float(-4.5)
float(NAN)
float(-0.5)
@ -103,7 +103,7 @@ float(4)
float(0)
float(0)
float(0)
float(1.7)
float(1.700000000000018)
float(4)
float(NAN)
float(0)
@ -117,7 +117,7 @@ float(4)
float(0)
float(0)
float(0)
float(1.7)
float(1.700000000000018)
float(4)
float(NAN)
float(0)
@ -131,7 +131,7 @@ float(4)
float(0)
float(0)
float(0)
float(1.7)
float(1.700000000000018)
float(4)
float(NAN)
float(0)
@ -145,7 +145,7 @@ float(4.5)
float(0.5)
float(0.5)
float(0.5)
float(2.2)
float(2.200000000000018)
float(4.5)
float(NAN)
float(0.5)
@ -159,7 +159,7 @@ float(4.5)
float(0.5)
float(0.5)
float(0.5)
float(2.2)
float(2.200000000000018)
float(4.5)
float(NAN)
float(0.5)

View File

@ -137,9 +137,9 @@ float(1)
--- testing: 9223372034707292160, -2147483648 ---
float(0)
--- testing: 9223372034707292160, 9223372036854775807 ---
float(9.2233720347073E+18)
float(9.223372034707292E+18)
--- testing: 9223372034707292160, -9223372036854775808 ---
float(9.2233720347073E+18)
float(9.223372034707292E+18)
--- testing: -9223372034707292160, 0 ---
float(NAN)
--- testing: -9223372034707292160, 1 ---
@ -159,9 +159,9 @@ float(-1)
--- testing: -9223372034707292160, -2147483648 ---
float(-0)
--- testing: -9223372034707292160, 9223372036854775807 ---
float(-9.2233720347073E+18)
float(-9.223372034707292E+18)
--- testing: -9223372034707292160, -9223372036854775808 ---
float(-9.2233720347073E+18)
float(-9.223372034707292E+18)
--- testing: 2147483648, 0 ---
float(NAN)
--- testing: 2147483648, 1 ---

View File

@ -34,15 +34,15 @@ foreach ($hexLongStrs as $strVal) {
--- testing: 7fffffffffffffff ---
int(9223372036854775807)
--- testing: ffffffffffffffff ---
float(1.844674407371E+19)
float(1.8446744073709552E+19)
--- testing: 7fffffff ---
int(2147483647)
--- testing: ffffffff ---
int(4294967295)
--- testing: 7ffffffffffffffff ---
float(1.4757395258968E+20)
float(1.4757395258967641E+20)
--- testing: ffffffffffffffffff ---
float(4.7223664828696E+21)
float(4.722366482869645E+21)
--- testing: 7ffffffff ---
int(34359738367)
--- testing: fffffffff ---

View File

@ -51,299 +51,299 @@ for ($i = 0; $i < count($valuesy); $i++) {
--EXPECTF--
*** Testing hypot() : basic functionality ***
Y:23 X:33 float(40.224370722238)
Y:23 X:33 float(40.22437072223753)
Y:23 X:-33 float(40.224370722238)
Y:23 X:-33 float(40.22437072223753)
Y:23 X:33.45 float(40.594365372549)
Y:23 X:33.45 float(40.594365372548936)
Y:23 X:-33.45 float(40.594365372549)
Y:23 X:-33.45 float(40.594365372548936)
Y:23 X:39 float(45.276925690687)
Y:23 X:39 float(45.27692569068709)
Y:23 X:31 float(38.600518131238)
Y:23 X:31 float(38.600518131237564)
Y:23 X:33 float(40.224370722238)
Y:23 X:33 float(40.22437072223753)
Y:23 X:43.45 float(49.162002603637)
Y:23 X:43.45 float(49.162002603636886)
Y:23 X:1.345e1 float(26.643995571235)
Y:23 X:1.345e1 float(26.64399557123518)
Y:23 X:33abc
Notice: A non well formed numeric value encountered in %s on line %d
float(40.224370722238)
float(40.22437072223753)
Y:23 X: float(23)
Y:23 X:1 float(23.021728866443)
Y:23 X:1 float(23.021728866442675)
Y:23 X: float(23)
Y:-23 X:33 float(40.224370722238)
Y:-23 X:33 float(40.22437072223753)
Y:-23 X:-33 float(40.224370722238)
Y:-23 X:-33 float(40.22437072223753)
Y:-23 X:33.45 float(40.594365372549)
Y:-23 X:33.45 float(40.594365372548936)
Y:-23 X:-33.45 float(40.594365372549)
Y:-23 X:-33.45 float(40.594365372548936)
Y:-23 X:39 float(45.276925690687)
Y:-23 X:39 float(45.27692569068709)
Y:-23 X:31 float(38.600518131238)
Y:-23 X:31 float(38.600518131237564)
Y:-23 X:33 float(40.224370722238)
Y:-23 X:33 float(40.22437072223753)
Y:-23 X:43.45 float(49.162002603637)
Y:-23 X:43.45 float(49.162002603636886)
Y:-23 X:1.345e1 float(26.643995571235)
Y:-23 X:1.345e1 float(26.64399557123518)
Y:-23 X:33abc
Notice: A non well formed numeric value encountered in %s on line %d
float(40.224370722238)
float(40.22437072223753)
Y:-23 X: float(23)
Y:-23 X:1 float(23.021728866443)
Y:-23 X:1 float(23.021728866442675)
Y:-23 X: float(23)
Y:23.45 X:33 float(40.483360779461)
Y:23.45 X:33 float(40.48336077946099)
Y:23.45 X:-33 float(40.483360779461)
Y:23.45 X:-33 float(40.48336077946099)
Y:23.45 X:33.45 float(40.851009779441)
Y:23.45 X:33.45 float(40.85100977944119)
Y:23.45 X:-33.45 float(40.851009779441)
Y:23.45 X:-33.45 float(40.85100977944119)
Y:23.45 X:39 float(45.507169764774)
Y:23.45 X:39 float(45.50716976477443)
Y:23.45 X:31 float(38.870329301409)
Y:23.45 X:31 float(38.87032930140932)
Y:23.45 X:33 float(40.483360779461)
Y:23.45 X:33 float(40.48336077946099)
Y:23.45 X:43.45 float(49.374132903779)
Y:23.45 X:43.45 float(49.37413290377868)
Y:23.45 X:1.345e1 float(27.033405260899)
Y:23.45 X:1.345e1 float(27.033405260898967)
Y:23.45 X:33abc
Notice: A non well formed numeric value encountered in %s on line %d
float(40.483360779461)
float(40.48336077946099)
Y:23.45 X: float(23.45)
Y:23.45 X:1 float(23.471312276905)
Y:23.45 X:1 float(23.47131227690518)
Y:23.45 X: float(23.45)
Y:-23.45 X:33 float(40.483360779461)
Y:-23.45 X:33 float(40.48336077946099)
Y:-23.45 X:-33 float(40.483360779461)
Y:-23.45 X:-33 float(40.48336077946099)
Y:-23.45 X:33.45 float(40.851009779441)
Y:-23.45 X:33.45 float(40.85100977944119)
Y:-23.45 X:-33.45 float(40.851009779441)
Y:-23.45 X:-33.45 float(40.85100977944119)
Y:-23.45 X:39 float(45.507169764774)
Y:-23.45 X:39 float(45.50716976477443)
Y:-23.45 X:31 float(38.870329301409)
Y:-23.45 X:31 float(38.87032930140932)
Y:-23.45 X:33 float(40.483360779461)
Y:-23.45 X:33 float(40.48336077946099)
Y:-23.45 X:43.45 float(49.374132903779)
Y:-23.45 X:43.45 float(49.37413290377868)
Y:-23.45 X:1.345e1 float(27.033405260899)
Y:-23.45 X:1.345e1 float(27.033405260898967)
Y:-23.45 X:33abc
Notice: A non well formed numeric value encountered in %s on line %d
float(40.483360779461)
float(40.48336077946099)
Y:-23.45 X: float(23.45)
Y:-23.45 X:1 float(23.471312276905)
Y:-23.45 X:1 float(23.47131227690518)
Y:-23.45 X: float(23.45)
Y:23 X:33 float(40.224370722238)
Y:23 X:33 float(40.22437072223753)
Y:23 X:-33 float(40.224370722238)
Y:23 X:-33 float(40.22437072223753)
Y:23 X:33.45 float(40.594365372549)
Y:23 X:33.45 float(40.594365372548936)
Y:23 X:-33.45 float(40.594365372549)
Y:23 X:-33.45 float(40.594365372548936)
Y:23 X:39 float(45.276925690687)
Y:23 X:39 float(45.27692569068709)
Y:23 X:31 float(38.600518131238)
Y:23 X:31 float(38.600518131237564)
Y:23 X:33 float(40.224370722238)
Y:23 X:33 float(40.22437072223753)
Y:23 X:43.45 float(49.162002603637)
Y:23 X:43.45 float(49.162002603636886)
Y:23 X:1.345e1 float(26.643995571235)
Y:23 X:1.345e1 float(26.64399557123518)
Y:23 X:33abc
Notice: A non well formed numeric value encountered in %s on line %d
float(40.224370722238)
float(40.22437072223753)
Y:23 X: float(23)
Y:23 X:1 float(23.021728866443)
Y:23 X:1 float(23.021728866442675)
Y:23 X: float(23)
Y:23 X:33 float(40.224370722238)
Y:23 X:33 float(40.22437072223753)
Y:23 X:-33 float(40.224370722238)
Y:23 X:-33 float(40.22437072223753)
Y:23 X:33.45 float(40.594365372549)
Y:23 X:33.45 float(40.594365372548936)
Y:23 X:-33.45 float(40.594365372549)
Y:23 X:-33.45 float(40.594365372548936)
Y:23 X:39 float(45.276925690687)
Y:23 X:39 float(45.27692569068709)
Y:23 X:31 float(38.600518131238)
Y:23 X:31 float(38.600518131237564)
Y:23 X:33 float(40.224370722238)
Y:23 X:33 float(40.22437072223753)
Y:23 X:43.45 float(49.162002603637)
Y:23 X:43.45 float(49.162002603636886)
Y:23 X:1.345e1 float(26.643995571235)
Y:23 X:1.345e1 float(26.64399557123518)
Y:23 X:33abc
Notice: A non well formed numeric value encountered in %s on line %d
float(40.224370722238)
float(40.22437072223753)
Y:23 X: float(23)
Y:23 X:1 float(23.021728866443)
Y:23 X:1 float(23.021728866442675)
Y:23 X: float(23)
Y:23 X:33 float(40.224370722238)
Y:23 X:33 float(40.22437072223753)
Y:23 X:-33 float(40.224370722238)
Y:23 X:-33 float(40.22437072223753)
Y:23 X:33.45 float(40.594365372549)
Y:23 X:33.45 float(40.594365372548936)
Y:23 X:-33.45 float(40.594365372549)
Y:23 X:-33.45 float(40.594365372548936)
Y:23 X:39 float(45.276925690687)
Y:23 X:39 float(45.27692569068709)
Y:23 X:31 float(38.600518131238)
Y:23 X:31 float(38.600518131237564)
Y:23 X:33 float(40.224370722238)
Y:23 X:33 float(40.22437072223753)
Y:23 X:43.45 float(49.162002603637)
Y:23 X:43.45 float(49.162002603636886)
Y:23 X:1.345e1 float(26.643995571235)
Y:23 X:1.345e1 float(26.64399557123518)
Y:23 X:33abc
Notice: A non well formed numeric value encountered in %s on line %d
float(40.224370722238)
float(40.22437072223753)
Y:23 X: float(23)
Y:23 X:1 float(23.021728866443)
Y:23 X:1 float(23.021728866442675)
Y:23 X: float(23)
Y:23.45 X:33 float(40.483360779461)
Y:23.45 X:33 float(40.48336077946099)
Y:23.45 X:-33 float(40.483360779461)
Y:23.45 X:-33 float(40.48336077946099)
Y:23.45 X:33.45 float(40.851009779441)
Y:23.45 X:33.45 float(40.85100977944119)
Y:23.45 X:-33.45 float(40.851009779441)
Y:23.45 X:-33.45 float(40.85100977944119)
Y:23.45 X:39 float(45.507169764774)
Y:23.45 X:39 float(45.50716976477443)
Y:23.45 X:31 float(38.870329301409)
Y:23.45 X:31 float(38.87032930140932)
Y:23.45 X:33 float(40.483360779461)
Y:23.45 X:33 float(40.48336077946099)
Y:23.45 X:43.45 float(49.374132903779)
Y:23.45 X:43.45 float(49.37413290377868)
Y:23.45 X:1.345e1 float(27.033405260899)
Y:23.45 X:1.345e1 float(27.033405260898967)
Y:23.45 X:33abc
Notice: A non well formed numeric value encountered in %s on line %d
float(40.483360779461)
float(40.48336077946099)
Y:23.45 X: float(23.45)
Y:23.45 X:1 float(23.471312276905)
Y:23.45 X:1 float(23.47131227690518)
Y:23.45 X: float(23.45)
Y:2.345e1 X:33 float(40.483360779461)
Y:2.345e1 X:33 float(40.48336077946099)
Y:2.345e1 X:-33 float(40.483360779461)
Y:2.345e1 X:-33 float(40.48336077946099)
Y:2.345e1 X:33.45 float(40.851009779441)
Y:2.345e1 X:33.45 float(40.85100977944119)
Y:2.345e1 X:-33.45 float(40.851009779441)
Y:2.345e1 X:-33.45 float(40.85100977944119)
Y:2.345e1 X:39 float(45.507169764774)
Y:2.345e1 X:39 float(45.50716976477443)
Y:2.345e1 X:31 float(38.870329301409)
Y:2.345e1 X:31 float(38.87032930140932)
Y:2.345e1 X:33 float(40.483360779461)
Y:2.345e1 X:33 float(40.48336077946099)
Y:2.345e1 X:43.45 float(49.374132903779)
Y:2.345e1 X:43.45 float(49.37413290377868)
Y:2.345e1 X:1.345e1 float(27.033405260899)
Y:2.345e1 X:1.345e1 float(27.033405260898967)
Y:2.345e1 X:33abc
Notice: A non well formed numeric value encountered in %s on line %d
float(40.483360779461)
float(40.48336077946099)
Y:2.345e1 X: float(23.45)
Y:2.345e1 X:1 float(23.471312276905)
Y:2.345e1 X:1 float(23.47131227690518)
Y:2.345e1 X: float(23.45)
Y:23abc X:33
Notice: A non well formed numeric value encountered in %s on line %d
float(40.224370722238)
float(40.22437072223753)
Y:23abc X:-33
Notice: A non well formed numeric value encountered in %s on line %d
float(40.224370722238)
float(40.22437072223753)
Y:23abc X:33.45
Notice: A non well formed numeric value encountered in %s on line %d
float(40.594365372549)
float(40.594365372548936)
Y:23abc X:-33.45
Notice: A non well formed numeric value encountered in %s on line %d
float(40.594365372549)
float(40.594365372548936)
Y:23abc X:39
Notice: A non well formed numeric value encountered in %s on line %d
float(45.276925690687)
float(45.27692569068709)
Y:23abc X:31
Notice: A non well formed numeric value encountered in %s on line %d
float(38.600518131238)
float(38.600518131237564)
Y:23abc X:33
Notice: A non well formed numeric value encountered in %s on line %d
float(40.224370722238)
float(40.22437072223753)
Y:23abc X:43.45
Notice: A non well formed numeric value encountered in %s on line %d
float(49.162002603637)
float(49.162002603636886)
Y:23abc X:1.345e1
Notice: A non well formed numeric value encountered in %s on line %d
float(26.643995571235)
float(26.64399557123518)
Y:23abc X:33abc
Notice: A non well formed numeric value encountered in %s on line %d
Notice: A non well formed numeric value encountered in %s on line %d
float(40.224370722238)
float(40.22437072223753)
Y:23abc X:
Notice: A non well formed numeric value encountered in %s on line %d
@ -351,7 +351,7 @@ float(23)
Y:23abc X:1
Notice: A non well formed numeric value encountered in %s on line %d
float(23.021728866443)
float(23.021728866442675)
Y:23abc X:
Notice: A non well formed numeric value encountered in %s on line %d
@ -385,31 +385,31 @@ Y: X:1 float(1)
Y: X: float(0)
Y:1 X:33 float(33.015148038438)
Y:1 X:33 float(33.015148038438355)
Y:1 X:-33 float(33.015148038438)
Y:1 X:-33 float(33.015148038438355)
Y:1 X:33.45 float(33.464944344792)
Y:1 X:33.45 float(33.46494434479161)
Y:1 X:-33.45 float(33.464944344792)
Y:1 X:-33.45 float(33.46494434479161)
Y:1 X:39 float(39.012818406262)
Y:1 X:39 float(39.01281840626232)
Y:1 X:31 float(31.016124838542)
Y:1 X:31 float(31.016124838541646)
Y:1 X:33 float(33.015148038438)
Y:1 X:33 float(33.015148038438355)
Y:1 X:43.45 float(43.461505956421)
Y:1 X:43.45 float(43.461505956420794)
Y:1 X:1.345e1 float(13.487123488721)
Y:1 X:1.345e1 float(13.48712348872064)
Y:1 X:33abc
Notice: A non well formed numeric value encountered in %s on line %d
float(33.015148038438)
float(33.015148038438355)
Y:1 X: float(1)
Y:1 X:1 float(1.4142135623731)
Y:1 X:1 float(1.4142135623730951)
Y:1 X: float(1)

View File

@ -31,49 +31,49 @@ foreach ($longVals as $longVal) {
?>
--EXPECT--
--- testing: 9223372036854775807, 0 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9223372036854775807, 1 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9223372036854775807, -1 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9223372036854775807, 7 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9223372036854775807, 9 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9223372036854775807, 65 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9223372036854775807, -44 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9223372036854775807, 2147483647 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9223372036854775807, -2147483648 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9223372036854775807, 9223372036854775807 ---
float(1.3043817825333E+19)
float(1.3043817825332783E+19)
--- testing: 9223372036854775807, -9223372036854775808 ---
float(1.3043817825333E+19)
float(1.3043817825332783E+19)
--- testing: -9223372036854775808, 0 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -9223372036854775808, 1 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -9223372036854775808, -1 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -9223372036854775808, 7 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -9223372036854775808, 9 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -9223372036854775808, 65 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -9223372036854775808, -44 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -9223372036854775808, 2147483647 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -9223372036854775808, -2147483648 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -9223372036854775808, 9223372036854775807 ---
float(1.3043817825333E+19)
float(1.3043817825332783E+19)
--- testing: -9223372036854775808, -9223372036854775808 ---
float(1.3043817825333E+19)
float(1.3043817825332783E+19)
--- testing: 2147483647, 0 ---
float(2147483647)
--- testing: 2147483647, 1 ---
@ -85,17 +85,17 @@ float(2147483647)
--- testing: 2147483647, 9 ---
float(2147483647)
--- testing: 2147483647, 65 ---
float(2147483647)
float(2147483647.000001)
--- testing: 2147483647, -44 ---
float(2147483647)
float(2147483647.0000005)
--- testing: 2147483647, 2147483647 ---
float(3037000498.5618)
float(3037000498.5618362)
--- testing: 2147483647, -2147483648 ---
float(3037000499.2689)
float(3037000499.268943)
--- testing: 2147483647, 9223372036854775807 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 2147483647, -9223372036854775808 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -2147483648, 0 ---
float(2147483648)
--- testing: -2147483648, 1 ---
@ -107,61 +107,61 @@ float(2147483648)
--- testing: -2147483648, 9 ---
float(2147483648)
--- testing: -2147483648, 65 ---
float(2147483648)
float(2147483648.000001)
--- testing: -2147483648, -44 ---
float(2147483648)
float(2147483648.0000005)
--- testing: -2147483648, 2147483647 ---
float(3037000499.2689)
float(3037000499.268943)
--- testing: -2147483648, -2147483648 ---
float(3037000499.976)
float(3037000499.97605)
--- testing: -2147483648, 9223372036854775807 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -2147483648, -9223372036854775808 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9223372034707292160, 0 ---
float(9.2233720347073E+18)
float(9.223372034707292E+18)
--- testing: 9223372034707292160, 1 ---
float(9.2233720347073E+18)
float(9.223372034707292E+18)
--- testing: 9223372034707292160, -1 ---
float(9.2233720347073E+18)
float(9.223372034707292E+18)
--- testing: 9223372034707292160, 7 ---
float(9.2233720347073E+18)
float(9.223372034707292E+18)
--- testing: 9223372034707292160, 9 ---
float(9.2233720347073E+18)
float(9.223372034707292E+18)
--- testing: 9223372034707292160, 65 ---
float(9.2233720347073E+18)
float(9.223372034707292E+18)
--- testing: 9223372034707292160, -44 ---
float(9.2233720347073E+18)
float(9.223372034707292E+18)
--- testing: 9223372034707292160, 2147483647 ---
float(9.2233720347073E+18)
float(9.223372034707292E+18)
--- testing: 9223372034707292160, -2147483648 ---
float(9.2233720347073E+18)
float(9.223372034707292E+18)
--- testing: 9223372034707292160, 9223372036854775807 ---
float(1.3043817823814E+19)
float(1.3043817823814281E+19)
--- testing: 9223372034707292160, -9223372036854775808 ---
float(1.3043817823814E+19)
float(1.3043817823814281E+19)
--- testing: -9223372034707292160, 0 ---
float(9.2233720347073E+18)
float(9.223372034707292E+18)
--- testing: -9223372034707292160, 1 ---
float(9.2233720347073E+18)
float(9.223372034707292E+18)
--- testing: -9223372034707292160, -1 ---
float(9.2233720347073E+18)
float(9.223372034707292E+18)
--- testing: -9223372034707292160, 7 ---
float(9.2233720347073E+18)
float(9.223372034707292E+18)
--- testing: -9223372034707292160, 9 ---
float(9.2233720347073E+18)
float(9.223372034707292E+18)
--- testing: -9223372034707292160, 65 ---
float(9.2233720347073E+18)
float(9.223372034707292E+18)
--- testing: -9223372034707292160, -44 ---
float(9.2233720347073E+18)
float(9.223372034707292E+18)
--- testing: -9223372034707292160, 2147483647 ---
float(9.2233720347073E+18)
float(9.223372034707292E+18)
--- testing: -9223372034707292160, -2147483648 ---
float(9.2233720347073E+18)
float(9.223372034707292E+18)
--- testing: -9223372034707292160, 9223372036854775807 ---
float(1.3043817823814E+19)
float(1.3043817823814281E+19)
--- testing: -9223372034707292160, -9223372036854775808 ---
float(1.3043817823814E+19)
float(1.3043817823814281E+19)
--- testing: 2147483648, 0 ---
float(2147483648)
--- testing: 2147483648, 1 ---
@ -173,17 +173,17 @@ float(2147483648)
--- testing: 2147483648, 9 ---
float(2147483648)
--- testing: 2147483648, 65 ---
float(2147483648)
float(2147483648.000001)
--- testing: 2147483648, -44 ---
float(2147483648)
float(2147483648.0000005)
--- testing: 2147483648, 2147483647 ---
float(3037000499.2689)
float(3037000499.268943)
--- testing: 2147483648, -2147483648 ---
float(3037000499.976)
float(3037000499.97605)
--- testing: 2147483648, 9223372036854775807 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 2147483648, -9223372036854775808 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -2147483649, 0 ---
float(2147483649)
--- testing: -2147483649, 1 ---
@ -195,17 +195,17 @@ float(2147483649)
--- testing: -2147483649, 9 ---
float(2147483649)
--- testing: -2147483649, 65 ---
float(2147483649)
float(2147483649.000001)
--- testing: -2147483649, -44 ---
float(2147483649)
float(2147483649.0000005)
--- testing: -2147483649, 2147483647 ---
float(3037000499.976)
float(3037000499.97605)
--- testing: -2147483649, -2147483648 ---
float(3037000500.6832)
float(3037000500.6831565)
--- testing: -2147483649, 9223372036854775807 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -2147483649, -9223372036854775808 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 4294967294, 0 ---
float(4294967294)
--- testing: 4294967294, 1 ---
@ -217,17 +217,17 @@ float(4294967294)
--- testing: 4294967294, 9 ---
float(4294967294)
--- testing: 4294967294, 65 ---
float(4294967294)
float(4294967294.0000005)
--- testing: 4294967294, -44 ---
float(4294967294)
--- testing: 4294967294, 2147483647 ---
float(4801919415.2612)
float(4801919415.261163)
--- testing: 4294967294, -2147483648 ---
float(4801919415.7084)
float(4801919415.708376)
--- testing: 4294967294, 9223372036854775807 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 4294967294, -9223372036854775808 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 4294967295, 0 ---
float(4294967295)
--- testing: 4294967295, 1 ---
@ -239,17 +239,17 @@ float(4294967295)
--- testing: 4294967295, 9 ---
float(4294967295)
--- testing: 4294967295, 65 ---
float(4294967295)
float(4294967295.0000005)
--- testing: 4294967295, -44 ---
float(4294967295)
--- testing: 4294967295, 2147483647 ---
float(4801919416.1556)
float(4801919416.155589)
--- testing: 4294967295, -2147483648 ---
float(4801919416.6028)
float(4801919416.602803)
--- testing: 4294967295, 9223372036854775807 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 4294967295, -9223372036854775808 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 4294967293, 0 ---
float(4294967293)
--- testing: 4294967293, 1 ---
@ -261,102 +261,102 @@ float(4294967293)
--- testing: 4294967293, 9 ---
float(4294967293)
--- testing: 4294967293, 65 ---
float(4294967293)
float(4294967293.0000005)
--- testing: 4294967293, -44 ---
float(4294967293)
--- testing: 4294967293, 2147483647 ---
float(4801919414.3667)
float(4801919414.366735)
--- testing: 4294967293, -2147483648 ---
float(4801919414.8139)
float(4801919414.813949)
--- testing: 4294967293, 9223372036854775807 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 4294967293, -9223372036854775808 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9223372036854775806, 0 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9223372036854775806, 1 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9223372036854775806, -1 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9223372036854775806, 7 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9223372036854775806, 9 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9223372036854775806, 65 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9223372036854775806, -44 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9223372036854775806, 2147483647 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9223372036854775806, -2147483648 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9223372036854775806, 9223372036854775807 ---
float(1.3043817825333E+19)
float(1.3043817825332783E+19)
--- testing: 9223372036854775806, -9223372036854775808 ---
float(1.3043817825333E+19)
float(1.3043817825332783E+19)
--- testing: 9.2233720368548E+18, 0 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9.2233720368548E+18, 1 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9.2233720368548E+18, -1 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9.2233720368548E+18, 7 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9.2233720368548E+18, 9 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9.2233720368548E+18, 65 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9.2233720368548E+18, -44 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9.2233720368548E+18, 2147483647 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9.2233720368548E+18, -2147483648 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9.2233720368548E+18, 9223372036854775807 ---
float(1.3043817825333E+19)
float(1.3043817825332783E+19)
--- testing: 9.2233720368548E+18, -9223372036854775808 ---
float(1.3043817825333E+19)
float(1.3043817825332783E+19)
--- testing: -9223372036854775807, 0 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -9223372036854775807, 1 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -9223372036854775807, -1 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -9223372036854775807, 7 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -9223372036854775807, 9 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -9223372036854775807, 65 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -9223372036854775807, -44 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -9223372036854775807, 2147483647 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -9223372036854775807, -2147483648 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -9223372036854775807, 9223372036854775807 ---
float(1.3043817825333E+19)
float(1.3043817825332783E+19)
--- testing: -9223372036854775807, -9223372036854775808 ---
float(1.3043817825333E+19)
float(1.3043817825332783E+19)
--- testing: -9.2233720368548E+18, 0 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -9.2233720368548E+18, 1 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -9.2233720368548E+18, -1 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -9.2233720368548E+18, 7 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -9.2233720368548E+18, 9 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -9.2233720368548E+18, 65 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -9.2233720368548E+18, -44 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -9.2233720368548E+18, 2147483647 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -9.2233720368548E+18, -2147483648 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -9.2233720368548E+18, 9223372036854775807 ---
float(1.3043817825333E+19)
float(1.3043817825332783E+19)
--- testing: -9.2233720368548E+18, -9223372036854775808 ---
float(1.3043817825333E+19)
float(1.3043817825332783E+19)

View File

@ -27,31 +27,31 @@ foreach ($longVals as $longVal) {
?>
--EXPECT--
--- testing: 9223372036854775807 ---
float(18.964889726831)
float(18.964889726830815)
--- testing: -9223372036854775808 ---
float(NAN)
--- testing: 2147483647 ---
float(9.3319298653812)
float(9.331929865381182)
--- testing: -2147483648 ---
float(NAN)
--- testing: 9223372034707292160 ---
float(18.96488972673)
float(18.964889726729698)
--- testing: -9223372034707292160 ---
float(NAN)
--- testing: 2147483648 ---
float(9.3319298655834)
float(9.331929865583417)
--- testing: -2147483649 ---
float(NAN)
--- testing: 4294967294 ---
float(9.6329598610452)
float(9.632959861045164)
--- testing: 4294967295 ---
float(9.6329598611463)
float(9.632959861146281)
--- testing: 4294967293 ---
float(9.632959860944)
float(9.632959860944046)
--- testing: 9223372036854775806 ---
float(18.964889726831)
float(18.964889726830815)
--- testing: 9.2233720368548E+18 ---
float(18.964889726831)
float(18.964889726830815)
--- testing: -9223372036854775807 ---
float(NAN)
--- testing: -9.2233720368548E+18 ---

View File

@ -34,15 +34,15 @@ for ($i = 0; $i < count($values); $i++) {
?>
--EXPECTF--
float(1.361727836)
float(1.3617278360175928)
float(NAN)
float(1.370142847)
float(1.3701428470511021)
float(NAN)
float(1.361727836)
float(1.361727836)
float(1.361727836)
float(1.370142847)
float(1.370142847)
float(1.3617278360175928)
float(1.3617278360175928)
float(1.3617278360175928)
float(1.3701428470511021)
float(1.3701428470511021)
float(3)
Notice: A non well formed numeric value encountered in %s on line %d

View File

@ -40,37 +40,37 @@ foreach($values as $value) {
LOG1p tests
-- log1p 23 --
float(3.1780538303479)
float(3.1780538303479458)
-- log1p -23 --
float(NAN)
-- log1p 23.45 --
float(3.1966302159209)
float(3.196630215920881)
-- log1p -23.45 --
float(NAN)
-- log1p 23 --
float(3.1780538303479)
float(3.1780538303479458)
-- log1p 23 --
float(3.1780538303479)
float(3.1780538303479458)
-- log1p 23 --
float(3.1780538303479)
float(3.1780538303479458)
-- log1p 23.45 --
float(3.1966302159209)
float(3.196630215920881)
-- log1p 2.345e1 --
float(3.1966302159209)
float(3.196630215920881)
-- log1p --
float(0)
-- log1p 1 --
float(0.69314718055995)
float(0.6931471805599453)
-- log1p --
float(0)

View File

@ -27,31 +27,31 @@ foreach ($longVals as $longVal) {
?>
--EXPECT--
--- testing: 9223372036854775807 ---
float(43.668272375277)
float(43.66827237527655)
--- testing: -9223372036854775808 ---
float(NAN)
--- testing: 2147483647 ---
float(21.487562597358)
float(21.487562597358306)
--- testing: -2147483648 ---
float(NAN)
--- testing: 9223372034707292160 ---
float(43.668272375044)
float(43.66827237504372)
--- testing: -9223372034707292160 ---
float(NAN)
--- testing: 2147483648 ---
float(21.487562597824)
float(21.487562597823967)
--- testing: -2147483649 ---
float(NAN)
--- testing: 4294967294 ---
float(22.180709777685)
float(22.18070977768542)
--- testing: 4294967295 ---
float(22.180709777918)
float(22.18070977791825)
--- testing: 4294967293 ---
float(22.180709777453)
float(22.180709777452588)
--- testing: 9223372036854775806 ---
float(43.668272375277)
float(43.66827237527655)
--- testing: 9.2233720368548E+18 ---
float(43.668272375277)
float(43.66827237527655)
--- testing: -9223372036854775807 ---
float(NAN)
--- testing: -9.2233720368548E+18 ---

View File

@ -30,30 +30,30 @@ for ($i = 0; $i < count($values); $i++) {
}
?>
--EXPECT--
LOG tests...no base
float(3.1354942159291)
LOG tests...no base
float(3.1354942159291497)
float(NAN)
float(3.1548704948923)
float(3.1548704948922883)
float(NAN)
float(3.1354942159291)
float(3.1354942159291)
float(3.1354942159291)
float(3.1548704948923)
float(3.1548704948923)
float(3.1354942159291497)
float(3.1354942159291497)
float(3.1354942159291497)
float(3.1548704948922883)
float(3.1548704948922883)
float(-INF)
float(0)
float(-INF)
LOG tests...base
float(2.2617809780285)
float(2.2617809780285065)
float(NAN)
float(2.275758008814)
float(2.275758008814007)
float(NAN)
float(2.2617809780285)
float(2.2617809780285)
float(2.2617809780285)
float(2.275758008814)
float(2.275758008814)
float(2.2617809780285065)
float(2.2617809780285065)
float(2.2617809780285065)
float(2.275758008814007)
float(2.275758008814007)
float(-INF)
float(0)
float(-INF)

View File

@ -27,31 +27,31 @@ foreach ($longVals as $longVal) {
?>
--EXPECT--
--- testing: 9223372036854775807 ---
float(43.668272375277)
float(43.66827237527655)
--- testing: -9223372036854775808 ---
float(NAN)
--- testing: 2147483647 ---
float(21.487562596893)
float(21.487562596892644)
--- testing: -2147483648 ---
float(NAN)
--- testing: 9223372034707292160 ---
float(43.668272375044)
float(43.66827237504372)
--- testing: -9223372034707292160 ---
float(NAN)
--- testing: 2147483648 ---
float(21.487562597358)
float(21.487562597358306)
--- testing: -2147483649 ---
float(NAN)
--- testing: 4294967294 ---
float(22.180709777453)
float(22.180709777452588)
--- testing: 4294967295 ---
float(22.180709777685)
float(22.18070977768542)
--- testing: 4294967293 ---
float(22.18070977722)
float(22.180709777219757)
--- testing: 9223372036854775806 ---
float(43.668272375277)
float(43.66827237527655)
--- testing: 9.2233720368548E+18 ---
float(43.668272375277)
float(43.66827237527655)
--- testing: -9223372036854775807 ---
float(NAN)
--- testing: -9.2233720368548E+18 ---

View File

@ -34,15 +34,15 @@ foreach ($octLongStrs as $strVal) {
--- testing: 777777777777777777777 ---
int(9223372036854775807)
--- testing: 1777777777777777777777 ---
float(1.844674407371E+19)
float(1.8446744073709552E+19)
--- testing: 17777777777 ---
int(2147483647)
--- testing: 37777777777 ---
int(4294967295)
--- testing: 377777777777777777777777 ---
float(2.3611832414348E+21)
float(2.3611832414348226E+21)
--- testing: 17777777777777777777777777 ---
float(7.5557863725914E+22)
float(7.555786372591432E+22)
--- testing: 377777777777 ---
int(34359738367)
--- testing: 777777777777 ---

View File

@ -35,11 +35,11 @@ int(1)
--- testing: 9223372036854775807, 1 ---
int(9223372036854775807)
--- testing: 9223372036854775807, -1 ---
float(1.0842021724855E-19)
float(1.0842021724855044E-19)
--- testing: 9223372036854775807, 7 ---
float(5.6784275335594E+132)
float(5.678427533559429E+132)
--- testing: 9223372036854775807, 9 ---
float(4.8306719037716E+170)
float(4.830671903771573E+170)
--- testing: 9223372036854775807, 65 ---
float(INF)
--- testing: 9223372036854775807, -44 ---
@ -57,11 +57,11 @@ int(1)
--- testing: -9223372036854775808, 1 ---
int(-9223372036854775808)
--- testing: -9223372036854775808, -1 ---
float(-1.0842021724855E-19)
float(-1.0842021724855044E-19)
--- testing: -9223372036854775808, 7 ---
float(-5.6784275335594E+132)
float(-5.678427533559429E+132)
--- testing: -9223372036854775808, 9 ---
float(-4.8306719037716E+170)
float(-4.830671903771573E+170)
--- testing: -9223372036854775808, 65 ---
float(-INF)
--- testing: -9223372036854775808, -44 ---
@ -79,11 +79,11 @@ int(1)
--- testing: 2147483647, 1 ---
int(2147483647)
--- testing: 2147483647, -1 ---
float(4.6566128752458E-10)
float(4.656612875245797E-10)
--- testing: 2147483647, 7 ---
float(2.1062458265056E+65)
float(2.1062458265055637E+65)
--- testing: 2147483647, 9 ---
float(9.7133444204205E+83)
float(9.713344420420489E+83)
--- testing: 2147483647, 65 ---
float(INF)
--- testing: 2147483647, -44 ---
@ -101,11 +101,11 @@ int(1)
--- testing: -2147483648, 1 ---
int(-2147483648)
--- testing: -2147483648, -1 ---
float(-4.6566128730774E-10)
float(-4.656612873077393E-10)
--- testing: -2147483648, 7 ---
float(-2.1062458333711E+65)
float(-2.1062458333711437E+65)
--- testing: -2147483648, 9 ---
float(-9.7133444611286E+83)
float(-9.713344461128645E+83)
--- testing: -2147483648, 65 ---
float(-INF)
--- testing: -2147483648, -44 ---
@ -123,11 +123,11 @@ int(1)
--- testing: 9223372034707292160, 1 ---
int(9223372034707292160)
--- testing: 9223372034707292160, -1 ---
float(1.0842021727379E-19)
float(1.08420217273794E-19)
--- testing: 9223372034707292160, 7 ---
float(5.6784275243046E+132)
float(5.678427524304645E+132)
--- testing: 9223372034707292160, 9 ---
float(4.830671893649E+170)
float(4.830671893649017E+170)
--- testing: 9223372034707292160, 65 ---
float(INF)
--- testing: 9223372034707292160, -44 ---
@ -145,11 +145,11 @@ int(1)
--- testing: -9223372034707292160, 1 ---
int(-9223372034707292160)
--- testing: -9223372034707292160, -1 ---
float(-1.0842021727379E-19)
float(-1.08420217273794E-19)
--- testing: -9223372034707292160, 7 ---
float(-5.6784275243046E+132)
float(-5.678427524304645E+132)
--- testing: -9223372034707292160, 9 ---
float(-4.830671893649E+170)
float(-4.830671893649017E+170)
--- testing: -9223372034707292160, 65 ---
float(-INF)
--- testing: -9223372034707292160, -44 ---
@ -167,11 +167,11 @@ int(1)
--- testing: 2147483648, 1 ---
int(2147483648)
--- testing: 2147483648, -1 ---
float(4.6566128730774E-10)
float(4.656612873077393E-10)
--- testing: 2147483648, 7 ---
float(2.1062458333711E+65)
float(2.1062458333711437E+65)
--- testing: 2147483648, 9 ---
float(9.7133444611286E+83)
float(9.713344461128645E+83)
--- testing: 2147483648, 65 ---
float(INF)
--- testing: 2147483648, -44 ---
@ -189,11 +189,11 @@ int(1)
--- testing: -2147483649, 1 ---
int(-2147483649)
--- testing: -2147483649, -1 ---
float(-4.656612870909E-10)
float(-4.656612870908988E-10)
--- testing: -2147483649, 7 ---
float(-2.1062458402367E+65)
float(-2.1062458402367238E+65)
--- testing: -2147483649, 9 ---
float(-9.7133445018368E+83)
float(-9.713344501836802E+83)
--- testing: -2147483649, 65 ---
float(-INF)
--- testing: -2147483649, -44 ---
@ -211,11 +211,11 @@ int(1)
--- testing: 4294967294, 1 ---
int(4294967294)
--- testing: 4294967294, -1 ---
float(2.3283064376229E-10)
float(2.3283064376228985E-10)
--- testing: 4294967294, 7 ---
float(2.6959946579271E+67)
float(2.6959946579271215E+67)
--- testing: 4294967294, 9 ---
float(4.9732323432553E+86)
float(4.9732323432552904E+86)
--- testing: 4294967294, 65 ---
float(INF)
--- testing: 4294967294, -44 ---
@ -233,11 +233,11 @@ int(1)
--- testing: 4294967295, 1 ---
int(4294967295)
--- testing: 4294967295, -1 ---
float(2.3283064370808E-10)
float(2.3283064370807974E-10)
--- testing: 4294967295, 7 ---
float(2.6959946623211E+67)
float(2.6959946623210928E+67)
--- testing: 4294967295, 9 ---
float(4.9732323536766E+86)
float(4.9732323536765784E+86)
--- testing: 4294967295, 65 ---
float(INF)
--- testing: 4294967295, -44 ---
@ -255,11 +255,11 @@ int(1)
--- testing: 4294967293, 1 ---
int(4294967293)
--- testing: 4294967293, -1 ---
float(2.328306438165E-10)
float(2.3283064381649995E-10)
--- testing: 4294967293, 7 ---
float(2.6959946535332E+67)
float(2.6959946535331503E+67)
--- testing: 4294967293, 9 ---
float(4.973232332834E+86)
float(4.9732323328340023E+86)
--- testing: 4294967293, 65 ---
float(INF)
--- testing: 4294967293, -44 ---
@ -277,11 +277,11 @@ int(1)
--- testing: 9223372036854775806, 1 ---
int(9223372036854775806)
--- testing: 9223372036854775806, -1 ---
float(1.0842021724855E-19)
float(1.0842021724855044E-19)
--- testing: 9223372036854775806, 7 ---
float(5.6784275335594E+132)
float(5.678427533559429E+132)
--- testing: 9223372036854775806, 9 ---
float(4.8306719037716E+170)
float(4.830671903771573E+170)
--- testing: 9223372036854775806, 65 ---
float(INF)
--- testing: 9223372036854775806, -44 ---
@ -297,13 +297,13 @@ float(0)
--- testing: 9.2233720368548E+18, 0 ---
float(1)
--- testing: 9.2233720368548E+18, 1 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9.2233720368548E+18, -1 ---
float(1.0842021724855E-19)
float(1.0842021724855044E-19)
--- testing: 9.2233720368548E+18, 7 ---
float(5.6784275335594E+132)
float(5.678427533559429E+132)
--- testing: 9.2233720368548E+18, 9 ---
float(4.8306719037716E+170)
float(4.830671903771573E+170)
--- testing: 9.2233720368548E+18, 65 ---
float(INF)
--- testing: 9.2233720368548E+18, -44 ---
@ -321,11 +321,11 @@ int(1)
--- testing: -9223372036854775807, 1 ---
int(-9223372036854775807)
--- testing: -9223372036854775807, -1 ---
float(-1.0842021724855E-19)
float(-1.0842021724855044E-19)
--- testing: -9223372036854775807, 7 ---
float(-5.6784275335594E+132)
float(-5.678427533559429E+132)
--- testing: -9223372036854775807, 9 ---
float(-4.8306719037716E+170)
float(-4.830671903771573E+170)
--- testing: -9223372036854775807, 65 ---
float(-INF)
--- testing: -9223372036854775807, -44 ---
@ -341,13 +341,13 @@ float(0)
--- testing: -9.2233720368548E+18, 0 ---
float(1)
--- testing: -9.2233720368548E+18, 1 ---
float(-9.2233720368548E+18)
float(-9.223372036854776E+18)
--- testing: -9.2233720368548E+18, -1 ---
float(-1.0842021724855E-19)
float(-1.0842021724855044E-19)
--- testing: -9.2233720368548E+18, 7 ---
float(-5.6784275335594E+132)
float(-5.678427533559429E+132)
--- testing: -9.2233720368548E+18, 9 ---
float(-4.8306719037716E+170)
float(-4.830671903771573E+170)
--- testing: -9.2233720368548E+18, 65 ---
float(-INF)
--- testing: -9.2233720368548E+18, -44 ---

View File

@ -1,7 +1,7 @@
--TEST--
Test pow() function : usage variations - different data types as $base argument
--INI--
precision = 14
serialize_precision = 14
--SKIPIF--
<?php
if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only");

View File

@ -110,7 +110,7 @@ int(1881365963625)
int(-12895213625)
-- Iteration 5 --
float(7.8463771692334E+56)
float(7.846377169233351E+56)
-- Iteration 6 --
float(1157.625)
@ -119,10 +119,10 @@ float(1157.625)
float(-1157.625)
-- Iteration 8 --
float(1.8816763717892E+33)
float(1.8816763717891549E+33)
-- Iteration 9 --
float(1.8816763717892E-27)
float(1.8816763717891545E-27)
-- Iteration 10 --
float(0.125)

View File

@ -1,7 +1,7 @@
--TEST--
Test pow() function : usage variations - different data types as $exp argument
--INI--
precision = 14
serialize_precision = 14
--FILE--
<?php
/* Prototype : number pow ( number $base , number $exp )

View File

@ -27,32 +27,32 @@ foreach ($longVals as $longVal) {
?>
--EXPECT--
--- testing: 9223372036854775807 ---
float(5.2846029059076E+20)
float(5.2846029059076024E+20)
--- testing: -9223372036854775808 ---
float(-5.2846029059076E+20)
float(-5.2846029059076024E+20)
--- testing: 2147483647 ---
float(123041749546.46)
float(123041749546.46191)
--- testing: -2147483648 ---
float(-123041749603.76)
float(-123041749603.75769)
--- testing: 9223372034707292160 ---
float(5.2846029046772E+20)
float(5.284602904677184E+20)
--- testing: -9223372034707292160 ---
float(-5.2846029046772E+20)
float(-5.284602904677184E+20)
--- testing: 2147483648 ---
float(123041749603.76)
float(123041749603.75769)
--- testing: -2147483649 ---
float(-123041749661.05)
float(-123041749661.05348)
--- testing: 4294967294 ---
float(246083499092.92)
float(246083499092.92383)
--- testing: 4294967295 ---
float(246083499150.22)
float(246083499150.21957)
--- testing: 4294967293 ---
float(246083499035.63)
float(246083499035.62805)
--- testing: 9223372036854775806 ---
float(5.2846029059076E+20)
float(5.2846029059076024E+20)
--- testing: 9.2233720368548E+18 ---
float(5.2846029059076E+20)
float(5.2846029059076024E+20)
--- testing: -9223372036854775807 ---
float(-5.2846029059076E+20)
float(-5.2846029059076024E+20)
--- testing: -9.2233720368548E+18 ---
float(-5.2846029059076E+20)
float(-5.2846029059076024E+20)

View File

@ -34,19 +34,19 @@ for ($i = 0; $i < count($values); $i++) {
?>
--EXPECTF--
float(1317.802929)
float(-1317.802929)
float(1343.58603)
float(-1343.58603)
float(1317.802929)
float(1317.802929)
float(1317.802929)
float(1343.58603)
float(1343.58603)
float(57295.77951)
float(1317.8029288008934)
float(-1317.8029288008934)
float(1343.5860295817804)
float(-1343.5860295817804)
float(1317.8029288008934)
float(1317.8029288008934)
float(1317.8029288008934)
float(1343.5860295817804)
float(1343.5860295817804)
float(57295.77951308232)
Notice: A non well formed numeric value encountered in %s on line %d
float(57295.77951)
float(57295.77951308232)
float(0)
float(57.29577951)
float(57.29577951308232)
float(0)

View File

@ -27,17 +27,17 @@ foreach ($longVals as $longVal) {
?>
--EXPECT--
--- testing: 9223372036854775807 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -9223372036854775808 ---
float(-9.2233720368548E+18)
float(-9.223372036854776E+18)
--- testing: 2147483647 ---
float(2147483647)
--- testing: -2147483648 ---
float(-2147483648)
--- testing: 9223372034707292160 ---
float(9.2233720347073E+18)
float(9.223372034707292E+18)
--- testing: -9223372034707292160 ---
float(-9.2233720347073E+18)
float(-9.223372034707292E+18)
--- testing: 2147483648 ---
float(2147483648)
--- testing: -2147483649 ---
@ -49,10 +49,10 @@ float(4294967295)
--- testing: 4294967293 ---
float(4294967293)
--- testing: 9223372036854775806 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9.2233720368548E+18 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -9223372036854775807 ---
float(-9.2233720368548E+18)
float(-9.223372036854776E+18)
--- testing: -9.2233720368548E+18 ---
float(-9.2233720368548E+18)
float(-9.223372036854776E+18)

View File

@ -4,6 +4,8 @@ Test sin function : 64bit long tests
<?php
if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--INI--
serialize_precision=14
--FILE--
<?php

View File

@ -1,7 +1,7 @@
--TEST--
Test variations in usage of sin()
--INI--
precision = 10
serialize_precision = 10
--FILE--
<?php
/*

View File

@ -1,7 +1,7 @@
--TEST--
Test variations in usage of sinh()
--INI--
precision = 10
serialize_precision = 10
--FILE--
<?php
/*

View File

@ -27,31 +27,31 @@ foreach ($longVals as $longVal) {
?>
--EXPECT--
--- testing: 9223372036854775807 ---
float(3037000499.976)
float(3037000499.97605)
--- testing: -9223372036854775808 ---
float(NAN)
--- testing: 2147483647 ---
float(46340.950001052)
float(46340.950001051984)
--- testing: -2147483648 ---
float(NAN)
--- testing: 9223372034707292160 ---
float(3037000499.6225)
float(3037000499.622496)
--- testing: -9223372034707292160 ---
float(NAN)
--- testing: 2147483648 ---
float(46340.950011842)
float(46340.95001184158)
--- testing: -2147483649 ---
float(NAN)
--- testing: 4294967294 ---
float(65535.999984741)
float(65535.99998474121)
--- testing: 4294967295 ---
float(65535.999992371)
float(65535.999992370605)
--- testing: 4294967293 ---
float(65535.999977112)
float(65535.99997711182)
--- testing: 9223372036854775806 ---
float(3037000499.976)
float(3037000499.97605)
--- testing: 9.2233720368548E+18 ---
float(3037000499.976)
float(3037000499.97605)
--- testing: -9223372036854775807 ---
float(NAN)
--- testing: -9.2233720368548E+18 ---

View File

@ -36,19 +36,19 @@ for ($i = 0; $i < count($values); $i++) {
?>
--EXPECTF--
*** Testing sqrt() : usage variations ***
float(4.7958315233127)
float(4.795831523312719)
float(NAN)
float(4.8425200051213)
float(NAN)
float(4.7958315233127)
float(4.7958315233127)
float(4.7958315233127)
float(4.795831523312719)
float(4.795831523312719)
float(4.795831523312719)
float(4.8425200051213)
float(4.8425200051213)
float(31.622776601684)
float(31.622776601683793)
Notice: A non well formed numeric value encountered in %s on line %d
float(31.622776601684)
float(31.622776601683793)
float(0)
float(1)
float(0)

View File

@ -1,11 +1,11 @@
--TEST--
Test tan function : 64bit long tests
--INI--
precision=5
--SKIPIF--
<?php
if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--INI--
serialize_precision=5
--FILE--
<?php
@ -52,9 +52,9 @@ float(-0.57225)
float(0.71667)
--- testing: 9223372036854775806 ---
float(84.739)
--- testing: 9.2234E+18 ---
--- testing: 9.2233720368548E+18 ---
float(84.739)
--- testing: -9223372036854775807 ---
float(-84.739)
--- testing: -9.2234E+18 ---
--- testing: -9.2233720368548E+18 ---
float(-84.739)

View File

@ -1,7 +1,7 @@
--TEST--
Test variations in usage of tan()
--INI--
precision = 10
serialize_precision = 10
--FILE--
<?php
/*

View File

@ -48,5 +48,5 @@ float(1)
Notice: A non well formed numeric value encountered in %s on line %d
float(1)
float(0)
float(0.761594156)
float(0.7615941559557649)
float(0)

View File

@ -16,10 +16,10 @@ d:100;
float\(100\)
d:5[0-9]*;
float\(5\.2E\+25\)
float\(5[0-9]*\)
d:8\.52[89][0-9]+E-22;
float\(8\.529E-22\)
float\(8\.52[89][0-9]+E-22\)
d:8\.[9]*[0-9]*E-9;
float\(9\.0E-9\)
float\(8\.[9]*[0-9]*E-9\)

View File

@ -47,7 +47,7 @@ array(7) {
[2]=>
int(-2)
[3]=>
float(3.333333)
float(3.333333000000000101437080957111902534961700439453125)
[4]=>
string(1) "a"
[5]=>
@ -62,7 +62,7 @@ array(7) {
[2]=>
int(-2)
[3]=>
float(3.333333)
float(3.333333000000000101437080957111902534961700439453125)
[4]=>
string(1) "a"
[5]=>

View File

@ -59,7 +59,7 @@ object(extendName)#%d (3) {
["a"]=>
int(10)
["b"]=>
float(12.222)
float(12.2219999999999995310417943983338773250579833984375)
["c"]=>
string(6) "string"
}

View File

@ -189,11 +189,11 @@ array(1) {
}
array(1) {
[1]=>
float(1.0E+16)
float(10000000000000000)
}
array(1) {
[1]=>
float(0.59123470982315)
float(0.591234709823149)
}
array(1) {
[1]=>
@ -201,15 +201,15 @@ array(1) {
}
array(1) {
[1]=>
float(-1.0E+16)
float(-10000000000000000)
}
array(1) {
[1]=>
float(-0.59123470982315)
float(-0.591234709823149)
}
array(1) {
[1]=>
float(-1.2345678901235E+19)
float(-1.2345678901234567E+19)
}
string(8) "unpack E"
array(1) {
@ -218,15 +218,15 @@ array(1) {
}
array(1) {
[1]=>
float(1.0E+16)
float(10000000000000000)
}
array(1) {
[1]=>
float(0.59123470982315)
float(0.591234709823149)
}
array(1) {
[1]=>
float(1.2345678901235E+19)
float(1.2345678901234567E+19)
}
array(1) {
[1]=>
@ -234,15 +234,15 @@ array(1) {
}
array(1) {
[1]=>
float(-1.0E+16)
float(-10000000000000000)
}
array(1) {
[1]=>
float(-0.59123470982315)
float(-0.591234709823149)
}
array(1) {
[1]=>
float(-1.2345678901235E+19)
float(-1.2345678901234567E+19)
}
string(8) "unpack g"
array(1) {
@ -251,15 +251,15 @@ array(1) {
}
array(1) {
[1]=>
float(1.0000000272564E+16)
float(10000000272564224)
}
array(1) {
[1]=>
float(0.59123468399048)
float(0.5912346839904785)
}
array(1) {
[1]=>
float(1.2345679395506E+19)
float(1.2345679395506094E+19)
}
array(1) {
[1]=>
@ -267,15 +267,15 @@ array(1) {
}
array(1) {
[1]=>
float(-1.0000000272564E+16)
float(-10000000272564224)
}
array(1) {
[1]=>
float(-0.59123468399048)
float(-0.5912346839904785)
}
array(1) {
[1]=>
float(-1.2345679395506E+19)
float(-1.2345679395506094E+19)
}
string(8) "unpack G"
array(1) {
@ -284,15 +284,15 @@ array(1) {
}
array(1) {
[1]=>
float(1.0000000272564E+16)
float(10000000272564224)
}
array(1) {
[1]=>
float(0.59123468399048)
float(0.5912346839904785)
}
array(1) {
[1]=>
float(1.2345679395506E+19)
float(1.2345679395506094E+19)
}
array(1) {
[1]=>
@ -300,13 +300,13 @@ array(1) {
}
array(1) {
[1]=>
float(-1.0000000272564E+16)
float(-10000000272564224)
}
array(1) {
[1]=>
float(-0.59123468399048)
float(-0.5912346839904785)
}
array(1) {
[1]=>
float(-1.2345679395506E+19)
float(-1.2345679395506094E+19)
}

View File

@ -31,7 +31,7 @@ int(3)
int(0)
int(1)
int(7)
float(54.545454545455)
float(54.54545454545455)
float(0)
float(18.181818181818)
float(51.851851851852)
float(18.181818181818183)
float(51.851851851851855)

View File

@ -114,7 +114,7 @@ again:
php_printf("%sint(" ZEND_LONG_FMT ")\n", COMMON, Z_LVAL_P(struc));
break;
case IS_DOUBLE:
php_printf("%sfloat(%.*G)\n", COMMON, (int) EG(precision), Z_DVAL_P(struc));
php_printf("%sfloat(%.*G)\n", COMMON, (int) PG(serialize_precision), Z_DVAL_P(struc));
break;
case IS_STRING:
php_printf("%sstring(%zd) \"", COMMON, Z_STRLEN_P(struc));
@ -295,7 +295,7 @@ again:
php_printf("%sint(" ZEND_LONG_FMT ")\n", COMMON, Z_LVAL_P(struc));
break;
case IS_DOUBLE:
php_printf("%sfloat(%.*G)\n", COMMON, (int) EG(precision), Z_DVAL_P(struc));
php_printf("%sfloat(%.*G)\n", COMMON, (int) PG(serialize_precision), Z_DVAL_P(struc));
break;
case IS_STRING:
php_printf("%sstring(%zd) \"", COMMON, Z_STRLEN_P(struc));

View File

@ -254,6 +254,7 @@ NO_PROC_OPEN_ERROR;
'auto_append_file=',
'ignore_repeated_errors=0',
'precision=14',
'serialize_precision=-1',
'memory_limit=128M',
'log_errors_max_len=0',
'opcache.fast_shutdown=0',

View File

@ -36,22 +36,22 @@ test(1.7e-1000);
?>
--EXPECTF--
1.7000000000000001E+300
float(1.7E+300)
float(1.7000000000000001E+300)
1.7E+300
1.7E+300
------
1.7000000000000001E-300
float(1.7E-300)
float(1.7000000000000001E-300)
1.7E-300
1.7E-300
------
1.7000000000000002E+79
float(1.7E+79)
float(1.7000000000000002E+79)
1.7E+79
1.7E+79
------
1.6999999999999999E-79
float(1.7E-79)
float(1.6999999999999999E-79)
1.7E-79
1.7E-79
------
@ -71,7 +71,7 @@ float(1.7E+81)
1.7E+81
------
1.6999999999999999E-81
float(1.7E-81)
float(1.6999999999999999E-81)
1.7E-81
1.7E-81
------
@ -81,7 +81,7 @@ I%s
I%s
------
1.6999810742105611E-319
float(1.69998107421E-319)
float(1.6999810742105611E-319)
1.69998107421E-319
1.69998107421E-319
------
@ -91,7 +91,7 @@ I%s
I%s
------
1.7000798873397294E-320
float(1.70007988734E-320)
float(1.7000798873397294E-320)
1.70007988734E-320
1.70007988734E-320
------
@ -101,7 +101,7 @@ I%s
I%s
------
1.6995858216938881E-321
float(1.69958582169E-321)
float(1.6995858216938881E-321)
1.69958582169E-321
1.69958582169E-321
------

View File

@ -41,27 +41,27 @@ foreach ($otherVals as $otherVal) {
--- testing: 9223372036854775807 + 0 ---
int(9223372036854775807)
--- testing: 9223372036854775807 + 1 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9223372036854775807 + -1 ---
int(9223372036854775806)
--- testing: 9223372036854775807 + 7 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9223372036854775807 + 9 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9223372036854775807 + 65 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9223372036854775807 + -44 ---
int(9223372036854775763)
--- testing: 9223372036854775807 + 2147483647 ---
float(9.2233720390023E+18)
float(9.22337203900226E+18)
--- testing: 9223372036854775807 + 9223372036854775807 ---
float(1.844674407371E+19)
float(1.8446744073709552E+19)
--- testing: -9223372036854775808 + 0 ---
int(-9223372036854775808)
--- testing: -9223372036854775808 + 1 ---
int(-9223372036854775807)
--- testing: -9223372036854775808 + -1 ---
float(-9.2233720368548E+18)
float(-9.223372036854776E+18)
--- testing: -9223372036854775808 + 7 ---
int(-9223372036854775801)
--- testing: -9223372036854775808 + 9 ---
@ -69,7 +69,7 @@ int(-9223372036854775799)
--- testing: -9223372036854775808 + 65 ---
int(-9223372036854775743)
--- testing: -9223372036854775808 + -44 ---
float(-9.2233720368548E+18)
float(-9.223372036854776E+18)
--- testing: -9223372036854775808 + 2147483647 ---
int(-9223372034707292161)
--- testing: -9223372036854775808 + 9223372036854775807 ---
@ -91,7 +91,7 @@ int(2147483603)
--- testing: 2147483647 + 2147483647 ---
int(4294967294)
--- testing: 2147483647 + 9223372036854775807 ---
float(9.2233720390023E+18)
float(9.22337203900226E+18)
--- testing: -2147483648 + 0 ---
int(-2147483648)
--- testing: -2147483648 + 1 ---
@ -127,7 +127,7 @@ int(9223372034707292116)
--- testing: 9223372034707292160 + 2147483647 ---
int(9223372036854775807)
--- testing: 9223372034707292160 + 9223372036854775807 ---
float(1.8446744071562E+19)
float(1.8446744071562068E+19)
--- testing: -9223372034707292160 + 0 ---
int(-9223372034707292160)
--- testing: -9223372034707292160 + 1 ---
@ -163,7 +163,7 @@ int(2147483604)
--- testing: 2147483648 + 2147483647 ---
int(4294967295)
--- testing: 2147483648 + 9223372036854775807 ---
float(9.2233720390023E+18)
float(9.22337203900226E+18)
--- testing: -2147483649 + 0 ---
int(-2147483649)
--- testing: -2147483649 + 1 ---
@ -199,7 +199,7 @@ int(4294967250)
--- testing: 4294967294 + 2147483647 ---
int(6442450941)
--- testing: 4294967294 + 9223372036854775807 ---
float(9.2233720411497E+18)
float(9.223372041149743E+18)
--- testing: 4294967295 + 0 ---
int(4294967295)
--- testing: 4294967295 + 1 ---
@ -217,7 +217,7 @@ int(4294967251)
--- testing: 4294967295 + 2147483647 ---
int(6442450942)
--- testing: 4294967295 + 9223372036854775807 ---
float(9.2233720411497E+18)
float(9.223372041149743E+18)
--- testing: 4294967293 + 0 ---
int(4294967293)
--- testing: 4294967293 + 1 ---
@ -235,7 +235,7 @@ int(4294967249)
--- testing: 4294967293 + 2147483647 ---
int(6442450940)
--- testing: 4294967293 + 9223372036854775807 ---
float(9.2233720411497E+18)
float(9.223372041149743E+18)
--- testing: 9223372036854775806 + 0 ---
int(9223372036854775806)
--- testing: 9223372036854775806 + 1 ---
@ -243,35 +243,35 @@ int(9223372036854775807)
--- testing: 9223372036854775806 + -1 ---
int(9223372036854775805)
--- testing: 9223372036854775806 + 7 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9223372036854775806 + 9 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9223372036854775806 + 65 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9223372036854775806 + -44 ---
int(9223372036854775762)
--- testing: 9223372036854775806 + 2147483647 ---
float(9.2233720390023E+18)
float(9.22337203900226E+18)
--- testing: 9223372036854775806 + 9223372036854775807 ---
float(1.844674407371E+19)
float(1.8446744073709552E+19)
--- testing: 9.2233720368548E+18 + 0 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9.2233720368548E+18 + 1 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9.2233720368548E+18 + -1 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9.2233720368548E+18 + 7 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9.2233720368548E+18 + 9 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9.2233720368548E+18 + 65 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9.2233720368548E+18 + -44 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9.2233720368548E+18 + 2147483647 ---
float(9.2233720390023E+18)
float(9.22337203900226E+18)
--- testing: 9.2233720368548E+18 + 9223372036854775807 ---
float(1.844674407371E+19)
float(1.8446744073709552E+19)
--- testing: -9223372036854775807 + 0 ---
int(-9223372036854775807)
--- testing: -9223372036854775807 + 1 ---
@ -285,27 +285,27 @@ int(-9223372036854775798)
--- testing: -9223372036854775807 + 65 ---
int(-9223372036854775742)
--- testing: -9223372036854775807 + -44 ---
float(-9.2233720368548E+18)
float(-9.223372036854776E+18)
--- testing: -9223372036854775807 + 2147483647 ---
int(-9223372034707292160)
--- testing: -9223372036854775807 + 9223372036854775807 ---
int(0)
--- testing: -9.2233720368548E+18 + 0 ---
float(-9.2233720368548E+18)
float(-9.223372036854776E+18)
--- testing: -9.2233720368548E+18 + 1 ---
float(-9.2233720368548E+18)
float(-9.223372036854776E+18)
--- testing: -9.2233720368548E+18 + -1 ---
float(-9.2233720368548E+18)
float(-9.223372036854776E+18)
--- testing: -9.2233720368548E+18 + 7 ---
float(-9.2233720368548E+18)
float(-9.223372036854776E+18)
--- testing: -9.2233720368548E+18 + 9 ---
float(-9.2233720368548E+18)
float(-9.223372036854776E+18)
--- testing: -9.2233720368548E+18 + 65 ---
float(-9.2233720368548E+18)
float(-9.223372036854776E+18)
--- testing: -9.2233720368548E+18 + -44 ---
float(-9.2233720368548E+18)
float(-9.223372036854776E+18)
--- testing: -9.2233720368548E+18 + 2147483647 ---
float(-9.2233720347073E+18)
float(-9.223372034707292E+18)
--- testing: -9.2233720368548E+18 + 9223372036854775807 ---
float(0)
--- testing: 0 + 9223372036854775807 ---
@ -333,13 +333,13 @@ int(4294967293)
--- testing: 0 + 9223372036854775806 ---
int(9223372036854775806)
--- testing: 0 + 9.2233720368548E+18 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 0 + -9223372036854775807 ---
int(-9223372036854775807)
--- testing: 0 + -9.2233720368548E+18 ---
float(-9.2233720368548E+18)
float(-9.223372036854776E+18)
--- testing: 1 + 9223372036854775807 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 1 + -9223372036854775808 ---
int(-9223372036854775807)
--- testing: 1 + 2147483647 ---
@ -363,15 +363,15 @@ int(4294967294)
--- testing: 1 + 9223372036854775806 ---
int(9223372036854775807)
--- testing: 1 + 9.2233720368548E+18 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 1 + -9223372036854775807 ---
int(-9223372036854775806)
--- testing: 1 + -9.2233720368548E+18 ---
float(-9.2233720368548E+18)
float(-9.223372036854776E+18)
--- testing: -1 + 9223372036854775807 ---
int(9223372036854775806)
--- testing: -1 + -9223372036854775808 ---
float(-9.2233720368548E+18)
float(-9.223372036854776E+18)
--- testing: -1 + 2147483647 ---
int(2147483646)
--- testing: -1 + -2147483648 ---
@ -393,13 +393,13 @@ int(4294967292)
--- testing: -1 + 9223372036854775806 ---
int(9223372036854775805)
--- testing: -1 + 9.2233720368548E+18 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -1 + -9223372036854775807 ---
int(-9223372036854775808)
--- testing: -1 + -9.2233720368548E+18 ---
float(-9.2233720368548E+18)
float(-9.223372036854776E+18)
--- testing: 7 + 9223372036854775807 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 7 + -9223372036854775808 ---
int(-9223372036854775801)
--- testing: 7 + 2147483647 ---
@ -421,15 +421,15 @@ int(4294967302)
--- testing: 7 + 4294967293 ---
int(4294967300)
--- testing: 7 + 9223372036854775806 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 7 + 9.2233720368548E+18 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 7 + -9223372036854775807 ---
int(-9223372036854775800)
--- testing: 7 + -9.2233720368548E+18 ---
float(-9.2233720368548E+18)
float(-9.223372036854776E+18)
--- testing: 9 + 9223372036854775807 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9 + -9223372036854775808 ---
int(-9223372036854775799)
--- testing: 9 + 2147483647 ---
@ -451,15 +451,15 @@ int(4294967304)
--- testing: 9 + 4294967293 ---
int(4294967302)
--- testing: 9 + 9223372036854775806 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9 + 9.2233720368548E+18 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9 + -9223372036854775807 ---
int(-9223372036854775798)
--- testing: 9 + -9.2233720368548E+18 ---
float(-9.2233720368548E+18)
float(-9.223372036854776E+18)
--- testing: 65 + 9223372036854775807 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 65 + -9223372036854775808 ---
int(-9223372036854775743)
--- testing: 65 + 2147483647 ---
@ -481,17 +481,17 @@ int(4294967360)
--- testing: 65 + 4294967293 ---
int(4294967358)
--- testing: 65 + 9223372036854775806 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 65 + 9.2233720368548E+18 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 65 + -9223372036854775807 ---
int(-9223372036854775742)
--- testing: 65 + -9.2233720368548E+18 ---
float(-9.2233720368548E+18)
float(-9.223372036854776E+18)
--- testing: -44 + 9223372036854775807 ---
int(9223372036854775763)
--- testing: -44 + -9223372036854775808 ---
float(-9.2233720368548E+18)
float(-9.223372036854776E+18)
--- testing: -44 + 2147483647 ---
int(2147483603)
--- testing: -44 + -2147483648 ---
@ -513,13 +513,13 @@ int(4294967249)
--- testing: -44 + 9223372036854775806 ---
int(9223372036854775762)
--- testing: -44 + 9.2233720368548E+18 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -44 + -9223372036854775807 ---
float(-9.2233720368548E+18)
float(-9.223372036854776E+18)
--- testing: -44 + -9.2233720368548E+18 ---
float(-9.2233720368548E+18)
float(-9.223372036854776E+18)
--- testing: 2147483647 + 9223372036854775807 ---
float(9.2233720390023E+18)
float(9.22337203900226E+18)
--- testing: 2147483647 + -9223372036854775808 ---
int(-9223372034707292161)
--- testing: 2147483647 + 2147483647 ---
@ -541,39 +541,39 @@ int(6442450942)
--- testing: 2147483647 + 4294967293 ---
int(6442450940)
--- testing: 2147483647 + 9223372036854775806 ---
float(9.2233720390023E+18)
float(9.22337203900226E+18)
--- testing: 2147483647 + 9.2233720368548E+18 ---
float(9.2233720390023E+18)
float(9.22337203900226E+18)
--- testing: 2147483647 + -9223372036854775807 ---
int(-9223372034707292160)
--- testing: 2147483647 + -9.2233720368548E+18 ---
float(-9.2233720347073E+18)
float(-9.223372034707292E+18)
--- testing: 9223372036854775807 + 9223372036854775807 ---
float(1.844674407371E+19)
float(1.8446744073709552E+19)
--- testing: 9223372036854775807 + -9223372036854775808 ---
int(-1)
--- testing: 9223372036854775807 + 2147483647 ---
float(9.2233720390023E+18)
float(9.22337203900226E+18)
--- testing: 9223372036854775807 + -2147483648 ---
int(9223372034707292159)
--- testing: 9223372036854775807 + 9223372034707292160 ---
float(1.8446744071562E+19)
float(1.8446744071562068E+19)
--- testing: 9223372036854775807 + -9223372034707292160 ---
int(2147483647)
--- testing: 9223372036854775807 + 2147483648 ---
float(9.2233720390023E+18)
float(9.22337203900226E+18)
--- testing: 9223372036854775807 + -2147483649 ---
int(9223372034707292158)
--- testing: 9223372036854775807 + 4294967294 ---
float(9.2233720411497E+18)
float(9.223372041149743E+18)
--- testing: 9223372036854775807 + 4294967295 ---
float(9.2233720411497E+18)
float(9.223372041149743E+18)
--- testing: 9223372036854775807 + 4294967293 ---
float(9.2233720411497E+18)
float(9.223372041149743E+18)
--- testing: 9223372036854775807 + 9223372036854775806 ---
float(1.844674407371E+19)
float(1.8446744073709552E+19)
--- testing: 9223372036854775807 + 9.2233720368548E+18 ---
float(1.844674407371E+19)
float(1.8446744073709552E+19)
--- testing: 9223372036854775807 + -9223372036854775807 ---
int(0)
--- testing: 9223372036854775807 + -9.2233720368548E+18 ---

View File

@ -157,7 +157,7 @@ float(115.3)
--- testing: '-7.7' + '123abc ' ---
float(115.3)
--- testing: '-7.7' + '3.4a' ---
float(-4.3)
float(-4.300000000000001)
--- testing: '-7.7' + 'a5.9' ---
float(-7.7)
--- testing: 'abc' + '0' ---
@ -365,7 +365,7 @@ float(-40.6)
--- testing: '3.4a' + '1.2' ---
float(4.6)
--- testing: '3.4a' + '-7.7' ---
float(-4.3)
float(-4.300000000000001)
--- testing: '3.4a' + 'abc' ---
float(3.4)
--- testing: '3.4a' + '123abc' ---

View File

@ -47,11 +47,11 @@ int(-9223372036854775807)
--- testing: 9223372036854775807 / 7 ---
int(1317624576693539401)
--- testing: 9223372036854775807 / 9 ---
float(1.0248191152061E+18)
float(1.0248191152060861E+18)
--- testing: 9223372036854775807 / 65 ---
float(1.4189803133623E+17)
float(1.4189803133622733E+17)
--- testing: 9223372036854775807 / -44 ---
float(-2.096220917467E+17)
float(-2.0962209174669946E+17)
--- testing: 9223372036854775807 / 2147483647 ---
float(4294967298)
--- testing: 9223372036854775807 / 9223372036854775807 ---
@ -61,15 +61,15 @@ float(-INF)
--- testing: -9223372036854775808 / 1 ---
int(-9223372036854775808)
--- testing: -9223372036854775808 / -1 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -9223372036854775808 / 7 ---
float(-1.3176245766935E+18)
float(-1.3176245766935393E+18)
--- testing: -9223372036854775808 / 9 ---
float(-1.0248191152061E+18)
float(-1.0248191152060861E+18)
--- testing: -9223372036854775808 / 65 ---
float(-1.4189803133623E+17)
float(-1.4189803133622733E+17)
--- testing: -9223372036854775808 / -44 ---
float(2.096220917467E+17)
float(2.0962209174669946E+17)
--- testing: -9223372036854775808 / 2147483647 ---
float(-4294967298)
--- testing: -9223372036854775808 / 9223372036854775807 ---
@ -81,17 +81,17 @@ int(2147483647)
--- testing: 2147483647 / -1 ---
int(-2147483647)
--- testing: 2147483647 / 7 ---
float(306783378.14286)
float(306783378.14285713)
--- testing: 2147483647 / 9 ---
float(238609294.11111)
float(238609294.1111111)
--- testing: 2147483647 / 65 ---
float(33038209.953846)
float(33038209.953846153)
--- testing: 2147483647 / -44 ---
float(-48806446.522727)
float(-48806446.52272727)
--- testing: 2147483647 / 2147483647 ---
int(1)
--- testing: 2147483647 / 9223372036854775807 ---
float(2.3283064354545E-10)
float(2.328306435454494E-10)
--- testing: -2147483648 / 0 ---
float(-INF)
--- testing: -2147483648 / 1 ---
@ -99,17 +99,17 @@ int(-2147483648)
--- testing: -2147483648 / -1 ---
int(2147483648)
--- testing: -2147483648 / 7 ---
float(-306783378.28571)
float(-306783378.28571427)
--- testing: -2147483648 / 9 ---
float(-238609294.22222)
float(-238609294.2222222)
--- testing: -2147483648 / 65 ---
float(-33038209.969231)
float(-33038209.96923077)
--- testing: -2147483648 / -44 ---
float(48806446.545455)
float(48806446.54545455)
--- testing: -2147483648 / 2147483647 ---
float(-1.0000000004657)
float(-1.0000000004656613)
--- testing: -2147483648 / 9223372036854775807 ---
float(-2.3283064365387E-10)
float(-2.3283064365386963E-10)
--- testing: 9223372034707292160 / 0 ---
float(INF)
--- testing: 9223372034707292160 / 1 ---
@ -117,17 +117,17 @@ int(9223372034707292160)
--- testing: 9223372034707292160 / -1 ---
int(-9223372034707292160)
--- testing: 9223372034707292160 / 7 ---
float(1.3176245763868E+18)
float(1.317624576386756E+18)
--- testing: 9223372034707292160 / 9 ---
float(1.0248191149675E+18)
float(1.0248191149674769E+18)
--- testing: 9223372034707292160 / 65 ---
float(1.4189803130319E+17)
float(1.418980313031891E+17)
--- testing: 9223372034707292160 / -44 ---
float(-2.0962209169789E+17)
float(-2.09622091697893E+17)
--- testing: 9223372034707292160 / 2147483647 ---
float(4294967297)
--- testing: 9223372034707292160 / 9223372036854775807 ---
float(0.99999999976717)
float(0.9999999997671694)
--- testing: -9223372034707292160 / 0 ---
float(-INF)
--- testing: -9223372034707292160 / 1 ---
@ -135,17 +135,17 @@ int(-9223372034707292160)
--- testing: -9223372034707292160 / -1 ---
int(9223372034707292160)
--- testing: -9223372034707292160 / 7 ---
float(-1.3176245763868E+18)
float(-1.317624576386756E+18)
--- testing: -9223372034707292160 / 9 ---
float(-1.0248191149675E+18)
float(-1.0248191149674769E+18)
--- testing: -9223372034707292160 / 65 ---
float(-1.4189803130319E+17)
float(-1.418980313031891E+17)
--- testing: -9223372034707292160 / -44 ---
float(2.0962209169789E+17)
float(2.09622091697893E+17)
--- testing: -9223372034707292160 / 2147483647 ---
float(-4294967297)
--- testing: -9223372034707292160 / 9223372036854775807 ---
float(-0.99999999976717)
float(-0.9999999997671694)
--- testing: 2147483648 / 0 ---
float(INF)
--- testing: 2147483648 / 1 ---
@ -153,17 +153,17 @@ int(2147483648)
--- testing: 2147483648 / -1 ---
int(-2147483648)
--- testing: 2147483648 / 7 ---
float(306783378.28571)
float(306783378.28571427)
--- testing: 2147483648 / 9 ---
float(238609294.22222)
float(238609294.2222222)
--- testing: 2147483648 / 65 ---
float(33038209.969231)
float(33038209.96923077)
--- testing: 2147483648 / -44 ---
float(-48806446.545455)
float(-48806446.54545455)
--- testing: 2147483648 / 2147483647 ---
float(1.0000000004657)
float(1.0000000004656613)
--- testing: 2147483648 / 9223372036854775807 ---
float(2.3283064365387E-10)
float(2.3283064365386963E-10)
--- testing: -2147483649 / 0 ---
float(-INF)
--- testing: -2147483649 / 1 ---
@ -171,17 +171,17 @@ int(-2147483649)
--- testing: -2147483649 / -1 ---
int(2147483649)
--- testing: -2147483649 / 7 ---
float(-306783378.42857)
float(-306783378.4285714)
--- testing: -2147483649 / 9 ---
float(-238609294.33333)
float(-238609294.33333334)
--- testing: -2147483649 / 65 ---
float(-33038209.984615)
float(-33038209.984615386)
--- testing: -2147483649 / -44 ---
float(48806446.568182)
float(48806446.56818182)
--- testing: -2147483649 / 2147483647 ---
float(-1.0000000009313)
float(-1.0000000009313226)
--- testing: -2147483649 / 9223372036854775807 ---
float(-2.3283064376229E-10)
float(-2.3283064376228985E-10)
--- testing: 4294967294 / 0 ---
float(INF)
--- testing: 4294967294 / 1 ---
@ -189,17 +189,17 @@ int(4294967294)
--- testing: 4294967294 / -1 ---
int(-4294967294)
--- testing: 4294967294 / 7 ---
float(613566756.28571)
float(613566756.2857143)
--- testing: 4294967294 / 9 ---
float(477218588.22222)
float(477218588.2222222)
--- testing: 4294967294 / 65 ---
float(66076419.907692)
float(66076419.907692306)
--- testing: 4294967294 / -44 ---
float(-97612893.045455)
float(-97612893.04545455)
--- testing: 4294967294 / 2147483647 ---
int(2)
--- testing: 4294967294 / 9223372036854775807 ---
float(4.656612870909E-10)
float(4.656612870908988E-10)
--- testing: 4294967295 / 0 ---
float(INF)
--- testing: 4294967295 / 1 ---
@ -207,17 +207,17 @@ int(4294967295)
--- testing: 4294967295 / -1 ---
int(-4294967295)
--- testing: 4294967295 / 7 ---
float(613566756.42857)
float(613566756.4285715)
--- testing: 4294967295 / 9 ---
float(477218588.33333)
float(477218588.3333333)
--- testing: 4294967295 / 65 ---
float(66076419.923077)
float(66076419.92307692)
--- testing: 4294967295 / -44 ---
float(-97612893.068182)
float(-97612893.06818181)
--- testing: 4294967295 / 2147483647 ---
float(2.0000000004657)
float(2.0000000004656613)
--- testing: 4294967295 / 9223372036854775807 ---
float(4.6566128719932E-10)
float(4.6566128719931904E-10)
--- testing: 4294967293 / 0 ---
float(INF)
--- testing: 4294967293 / 1 ---
@ -225,17 +225,17 @@ int(4294967293)
--- testing: 4294967293 / -1 ---
int(-4294967293)
--- testing: 4294967293 / 7 ---
float(613566756.14286)
float(613566756.1428572)
--- testing: 4294967293 / 9 ---
float(477218588.11111)
float(477218588.1111111)
--- testing: 4294967293 / 65 ---
float(66076419.892308)
float(66076419.89230769)
--- testing: 4294967293 / -44 ---
float(-97612893.022727)
float(-97612893.02272727)
--- testing: 4294967293 / 2147483647 ---
float(1.9999999995343)
float(1.9999999995343387)
--- testing: 4294967293 / 9223372036854775807 ---
float(4.6566128698248E-10)
float(4.656612869824786E-10)
--- testing: 9223372036854775806 / 0 ---
float(INF)
--- testing: 9223372036854775806 / 1 ---
@ -243,13 +243,13 @@ int(9223372036854775806)
--- testing: 9223372036854775806 / -1 ---
int(-9223372036854775806)
--- testing: 9223372036854775806 / 7 ---
float(1.3176245766935E+18)
float(1.3176245766935393E+18)
--- testing: 9223372036854775806 / 9 ---
float(1.0248191152061E+18)
float(1.0248191152060861E+18)
--- testing: 9223372036854775806 / 65 ---
float(1.4189803133623E+17)
float(1.4189803133622733E+17)
--- testing: 9223372036854775806 / -44 ---
float(-2.096220917467E+17)
float(-2.0962209174669946E+17)
--- testing: 9223372036854775806 / 2147483647 ---
int(4294967298)
--- testing: 9223372036854775806 / 9223372036854775807 ---
@ -257,17 +257,17 @@ float(1)
--- testing: 9.2233720368548E+18 / 0 ---
float(INF)
--- testing: 9.2233720368548E+18 / 1 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: 9.2233720368548E+18 / -1 ---
float(-9.2233720368548E+18)
float(-9.223372036854776E+18)
--- testing: 9.2233720368548E+18 / 7 ---
float(1.3176245766935E+18)
float(1.3176245766935393E+18)
--- testing: 9.2233720368548E+18 / 9 ---
float(1.0248191152061E+18)
float(1.0248191152060861E+18)
--- testing: 9.2233720368548E+18 / 65 ---
float(1.4189803133623E+17)
float(1.4189803133622733E+17)
--- testing: 9.2233720368548E+18 / -44 ---
float(-2.096220917467E+17)
float(-2.0962209174669946E+17)
--- testing: 9.2233720368548E+18 / 2147483647 ---
float(4294967298)
--- testing: 9.2233720368548E+18 / 9223372036854775807 ---
@ -281,11 +281,11 @@ int(9223372036854775807)
--- testing: -9223372036854775807 / 7 ---
int(-1317624576693539401)
--- testing: -9223372036854775807 / 9 ---
float(-1.0248191152061E+18)
float(-1.0248191152060861E+18)
--- testing: -9223372036854775807 / 65 ---
float(-1.4189803133623E+17)
float(-1.4189803133622733E+17)
--- testing: -9223372036854775807 / -44 ---
float(2.096220917467E+17)
float(2.0962209174669946E+17)
--- testing: -9223372036854775807 / 2147483647 ---
float(-4294967298)
--- testing: -9223372036854775807 / 9223372036854775807 ---
@ -293,17 +293,17 @@ int(-1)
--- testing: -9.2233720368548E+18 / 0 ---
float(-INF)
--- testing: -9.2233720368548E+18 / 1 ---
float(-9.2233720368548E+18)
float(-9.223372036854776E+18)
--- testing: -9.2233720368548E+18 / -1 ---
float(9.2233720368548E+18)
float(9.223372036854776E+18)
--- testing: -9.2233720368548E+18 / 7 ---
float(-1.3176245766935E+18)
float(-1.3176245766935393E+18)
--- testing: -9.2233720368548E+18 / 9 ---
float(-1.0248191152061E+18)
float(-1.0248191152060861E+18)
--- testing: -9.2233720368548E+18 / 65 ---
float(-1.4189803133623E+17)
float(-1.4189803133622733E+17)
--- testing: -9.2233720368548E+18 / -44 ---
float(2.096220917467E+17)
float(2.0962209174669946E+17)
--- testing: -9.2233720368548E+18 / 2147483647 ---
float(-4294967298)
--- testing: -9.2233720368548E+18 / 9223372036854775807 ---
@ -339,215 +339,215 @@ int(0)
--- testing: 0 / -9.2233720368548E+18 ---
float(-0)
--- testing: 1 / 9223372036854775807 ---
float(1.0842021724855E-19)
float(1.0842021724855044E-19)
--- testing: 1 / -9223372036854775808 ---
float(-1.0842021724855E-19)
float(-1.0842021724855044E-19)
--- testing: 1 / 2147483647 ---
float(4.6566128752458E-10)
float(4.656612875245797E-10)
--- testing: 1 / -2147483648 ---
float(-4.6566128730774E-10)
float(-4.656612873077393E-10)
--- testing: 1 / 9223372034707292160 ---
float(1.0842021727379E-19)
float(1.08420217273794E-19)
--- testing: 1 / -9223372034707292160 ---
float(-1.0842021727379E-19)
float(-1.08420217273794E-19)
--- testing: 1 / 2147483648 ---
float(4.6566128730774E-10)
float(4.656612873077393E-10)
--- testing: 1 / -2147483649 ---
float(-4.656612870909E-10)
float(-4.656612870908988E-10)
--- testing: 1 / 4294967294 ---
float(2.3283064376229E-10)
float(2.3283064376228985E-10)
--- testing: 1 / 4294967295 ---
float(2.3283064370808E-10)
float(2.3283064370807974E-10)
--- testing: 1 / 4294967293 ---
float(2.328306438165E-10)
float(2.3283064381649995E-10)
--- testing: 1 / 9223372036854775806 ---
float(1.0842021724855E-19)
float(1.0842021724855044E-19)
--- testing: 1 / 9.2233720368548E+18 ---
float(1.0842021724855E-19)
float(1.0842021724855044E-19)
--- testing: 1 / -9223372036854775807 ---
float(-1.0842021724855E-19)
float(-1.0842021724855044E-19)
--- testing: 1 / -9.2233720368548E+18 ---
float(-1.0842021724855E-19)
float(-1.0842021724855044E-19)
--- testing: -1 / 9223372036854775807 ---
float(-1.0842021724855E-19)
float(-1.0842021724855044E-19)
--- testing: -1 / -9223372036854775808 ---
float(1.0842021724855E-19)
float(1.0842021724855044E-19)
--- testing: -1 / 2147483647 ---
float(-4.6566128752458E-10)
float(-4.656612875245797E-10)
--- testing: -1 / -2147483648 ---
float(4.6566128730774E-10)
float(4.656612873077393E-10)
--- testing: -1 / 9223372034707292160 ---
float(-1.0842021727379E-19)
float(-1.08420217273794E-19)
--- testing: -1 / -9223372034707292160 ---
float(1.0842021727379E-19)
float(1.08420217273794E-19)
--- testing: -1 / 2147483648 ---
float(-4.6566128730774E-10)
float(-4.656612873077393E-10)
--- testing: -1 / -2147483649 ---
float(4.656612870909E-10)
float(4.656612870908988E-10)
--- testing: -1 / 4294967294 ---
float(-2.3283064376229E-10)
float(-2.3283064376228985E-10)
--- testing: -1 / 4294967295 ---
float(-2.3283064370808E-10)
float(-2.3283064370807974E-10)
--- testing: -1 / 4294967293 ---
float(-2.328306438165E-10)
float(-2.3283064381649995E-10)
--- testing: -1 / 9223372036854775806 ---
float(-1.0842021724855E-19)
float(-1.0842021724855044E-19)
--- testing: -1 / 9.2233720368548E+18 ---
float(-1.0842021724855E-19)
float(-1.0842021724855044E-19)
--- testing: -1 / -9223372036854775807 ---
float(1.0842021724855E-19)
float(1.0842021724855044E-19)
--- testing: -1 / -9.2233720368548E+18 ---
float(1.0842021724855E-19)
float(1.0842021724855044E-19)
--- testing: 7 / 9223372036854775807 ---
float(7.5894152073985E-19)
float(7.589415207398531E-19)
--- testing: 7 / -9223372036854775808 ---
float(-7.5894152073985E-19)
float(-7.589415207398531E-19)
--- testing: 7 / 2147483647 ---
float(3.2596290126721E-9)
float(3.259629012672058E-9)
--- testing: 7 / -2147483648 ---
float(-3.2596290111542E-9)
float(-3.259629011154175E-9)
--- testing: 7 / 9223372034707292160 ---
float(7.5894152091656E-19)
float(7.589415209165579E-19)
--- testing: 7 / -9223372034707292160 ---
float(-7.5894152091656E-19)
float(-7.589415209165579E-19)
--- testing: 7 / 2147483648 ---
float(3.2596290111542E-9)
float(3.259629011154175E-9)
--- testing: 7 / -2147483649 ---
float(-3.2596290096363E-9)
float(-3.2596290096362918E-9)
--- testing: 7 / 4294967294 ---
float(1.629814506336E-9)
float(1.629814506336029E-9)
--- testing: 7 / 4294967295 ---
float(1.6298145059566E-9)
float(1.6298145059565582E-9)
--- testing: 7 / 4294967293 ---
float(1.6298145067155E-9)
float(1.6298145067154997E-9)
--- testing: 7 / 9223372036854775806 ---
float(7.5894152073985E-19)
float(7.589415207398531E-19)
--- testing: 7 / 9.2233720368548E+18 ---
float(7.5894152073985E-19)
float(7.589415207398531E-19)
--- testing: 7 / -9223372036854775807 ---
float(-7.5894152073985E-19)
float(-7.589415207398531E-19)
--- testing: 7 / -9.2233720368548E+18 ---
float(-7.5894152073985E-19)
float(-7.589415207398531E-19)
--- testing: 9 / 9223372036854775807 ---
float(9.7578195523695E-19)
float(9.75781955236954E-19)
--- testing: 9 / -9223372036854775808 ---
float(-9.7578195523695E-19)
float(-9.75781955236954E-19)
--- testing: 9 / 2147483647 ---
float(4.1909515877212E-9)
float(4.190951587721217E-9)
--- testing: 9 / -2147483648 ---
float(-4.1909515857697E-9)
float(-4.190951585769653E-9)
--- testing: 9 / 9223372034707292160 ---
float(9.7578195546415E-19)
float(9.75781955464146E-19)
--- testing: 9 / -9223372034707292160 ---
float(-9.7578195546415E-19)
float(-9.75781955464146E-19)
--- testing: 9 / 2147483648 ---
float(4.1909515857697E-9)
float(4.190951585769653E-9)
--- testing: 9 / -2147483649 ---
float(-4.1909515838181E-9)
float(-4.190951583818089E-9)
--- testing: 9 / 4294967294 ---
float(2.0954757938606E-9)
float(2.0954757938606086E-9)
--- testing: 9 / 4294967295 ---
float(2.0954757933727E-9)
float(2.0954757933727176E-9)
--- testing: 9 / 4294967293 ---
float(2.0954757943485E-9)
float(2.0954757943484996E-9)
--- testing: 9 / 9223372036854775806 ---
float(9.7578195523695E-19)
float(9.75781955236954E-19)
--- testing: 9 / 9.2233720368548E+18 ---
float(9.7578195523695E-19)
float(9.75781955236954E-19)
--- testing: 9 / -9223372036854775807 ---
float(-9.7578195523695E-19)
float(-9.75781955236954E-19)
--- testing: 9 / -9.2233720368548E+18 ---
float(-9.7578195523695E-19)
float(-9.75781955236954E-19)
--- testing: 65 / 9223372036854775807 ---
float(7.0473141211558E-18)
float(7.047314121155779E-18)
--- testing: 65 / -9223372036854775808 ---
float(-7.0473141211558E-18)
float(-7.047314121155779E-18)
--- testing: 65 / 2147483647 ---
float(3.0267983689098E-8)
float(3.026798368909768E-8)
--- testing: 65 / -2147483648 ---
float(-3.0267983675003E-8)
float(-3.026798367500305E-8)
--- testing: 65 / 9223372034707292160 ---
float(7.0473141227966E-18)
float(7.04731412279661E-18)
--- testing: 65 / -9223372034707292160 ---
float(-7.0473141227966E-18)
float(-7.04731412279661E-18)
--- testing: 65 / 2147483648 ---
float(3.0267983675003E-8)
float(3.026798367500305E-8)
--- testing: 65 / -2147483649 ---
float(-3.0267983660908E-8)
float(-3.0267983660908424E-8)
--- testing: 65 / 4294967294 ---
float(1.5133991844549E-8)
float(1.513399184454884E-8)
--- testing: 65 / 4294967295 ---
float(1.5133991841025E-8)
float(1.5133991841025183E-8)
--- testing: 65 / 4294967293 ---
float(1.5133991848072E-8)
float(1.5133991848072497E-8)
--- testing: 65 / 9223372036854775806 ---
float(7.0473141211558E-18)
float(7.047314121155779E-18)
--- testing: 65 / 9.2233720368548E+18 ---
float(7.0473141211558E-18)
float(7.047314121155779E-18)
--- testing: 65 / -9223372036854775807 ---
float(-7.0473141211558E-18)
float(-7.047314121155779E-18)
--- testing: 65 / -9.2233720368548E+18 ---
float(-7.0473141211558E-18)
float(-7.047314121155779E-18)
--- testing: -44 / 9223372036854775807 ---
float(-4.7704895589362E-18)
float(-4.7704895589362195E-18)
--- testing: -44 / -9223372036854775808 ---
float(4.7704895589362E-18)
float(4.7704895589362195E-18)
--- testing: -44 / 2147483647 ---
float(-2.0489096651082E-8)
float(-2.0489096651081506E-8)
--- testing: -44 / -2147483648 ---
float(2.0489096641541E-8)
float(2.0489096641540527E-8)
--- testing: -44 / 9223372034707292160 ---
float(-4.7704895600469E-18)
float(-4.770489560046936E-18)
--- testing: -44 / -9223372034707292160 ---
float(4.7704895600469E-18)
float(4.770489560046936E-18)
--- testing: -44 / 2147483648 ---
float(-2.0489096641541E-8)
float(-2.0489096641540527E-8)
--- testing: -44 / -2147483649 ---
float(2.0489096632E-8)
float(2.0489096631999548E-8)
--- testing: -44 / 4294967294 ---
float(-1.0244548325541E-8)
float(-1.0244548325540753E-8)
--- testing: -44 / 4294967295 ---
float(-1.0244548323156E-8)
float(-1.0244548323155508E-8)
--- testing: -44 / 4294967293 ---
float(-1.0244548327926E-8)
float(-1.0244548327925998E-8)
--- testing: -44 / 9223372036854775806 ---
float(-4.7704895589362E-18)
float(-4.7704895589362195E-18)
--- testing: -44 / 9.2233720368548E+18 ---
float(-4.7704895589362E-18)
float(-4.7704895589362195E-18)
--- testing: -44 / -9223372036854775807 ---
float(4.7704895589362E-18)
float(4.7704895589362195E-18)
--- testing: -44 / -9.2233720368548E+18 ---
float(4.7704895589362E-18)
float(4.7704895589362195E-18)
--- testing: 2147483647 / 9223372036854775807 ---
float(2.3283064354545E-10)
float(2.328306435454494E-10)
--- testing: 2147483647 / -9223372036854775808 ---
float(-2.3283064354545E-10)
float(-2.328306435454494E-10)
--- testing: 2147483647 / 2147483647 ---
int(1)
--- testing: 2147483647 / -2147483648 ---
float(-0.99999999953434)
float(-0.9999999995343387)
--- testing: 2147483647 / 9223372034707292160 ---
float(2.3283064359966E-10)
float(2.3283064359965952E-10)
--- testing: 2147483647 / -9223372034707292160 ---
float(-2.3283064359966E-10)
float(-2.3283064359965952E-10)
--- testing: 2147483647 / 2147483648 ---
float(0.99999999953434)
float(0.9999999995343387)
--- testing: 2147483647 / -2147483649 ---
float(-0.99999999906868)
float(-0.9999999990686774)
--- testing: 2147483647 / 4294967294 ---
float(0.5)
--- testing: 2147483647 / 4294967295 ---
float(0.49999999988358)
float(0.4999999998835847)
--- testing: 2147483647 / 4294967293 ---
float(0.50000000011642)
float(0.5000000001164153)
--- testing: 2147483647 / 9223372036854775806 ---
float(2.3283064354545E-10)
float(2.328306435454494E-10)
--- testing: 2147483647 / 9.2233720368548E+18 ---
float(2.3283064354545E-10)
float(2.328306435454494E-10)
--- testing: 2147483647 / -9223372036854775807 ---
float(-2.3283064354545E-10)
float(-2.328306435454494E-10)
--- testing: 2147483647 / -9.2233720368548E+18 ---
float(-2.3283064354545E-10)
float(-2.328306435454494E-10)
--- testing: 9223372036854775807 / 9223372036854775807 ---
int(1)
--- testing: 9223372036854775807 / -9223372036854775808 ---
@ -557,9 +557,9 @@ float(4294967298)
--- testing: 9223372036854775807 / -2147483648 ---
float(-4294967296)
--- testing: 9223372036854775807 / 9223372034707292160 ---
float(1.0000000002328)
float(1.0000000002328306)
--- testing: 9223372036854775807 / -9223372034707292160 ---
float(-1.0000000002328)
float(-1.0000000002328306)
--- testing: 9223372036854775807 / 2147483648 ---
float(4294967296)
--- testing: 9223372036854775807 / -2147483649 ---

Some files were not shown because too many files have changed in this diff Show More