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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user