1
0
mirror of https://github.com/php/php-src.git synced 2026-04-17 13:01:02 +02:00

Better abs() testing

This commit is contained in:
Jeroen van Wolffelaar
2001-08-04 21:40:34 +00:00
parent fcf57d371d
commit c105f7142f

View File

@@ -8,6 +8,9 @@ Simple math tests
echo abs(-1.5) . "\n";
echo abs("-1") . "\n";
echo abs("-1.5") . "\n";
echo abs(-2147483647) . "\n";
echo abs(-2147483648) . "\n";
echo abs(-2147483649) . "\n";
echo ceil(-1.5) . "\n";
echo ceil(1.5) . "\n";
echo floor(-1.5) . "\n";
@@ -19,6 +22,9 @@ Simple math tests
1.5
1
1.5
2147483647
2147483648
2147483649
-1
2
-2