mirror of
https://github.com/php/php-src.git
synced 2024-10-15 13:32:39 +00:00
26 lines
301 B
Plaintext
26 lines
301 B
Plaintext
|
--TEST--
|
||
|
Simple math tests
|
||
|
--POST--
|
||
|
--GET--
|
||
|
--FILE--
|
||
|
<?php
|
||
|
echo abs(-1) . "\n";
|
||
|
echo abs(-1.5) . "\n";
|
||
|
echo abs("-1") . "\n";
|
||
|
echo abs("-1.5") . "\n";
|
||
|
echo ceil(-1.5) . "\n";
|
||
|
echo ceil(1.5) . "\n";
|
||
|
echo floor(-1.5) . "\n";
|
||
|
echo floor(1.5) . "\n";
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
|
||
|
1
|
||
|
1.5
|
||
|
1
|
||
|
1.5
|
||
|
-1
|
||
|
2
|
||
|
-2
|
||
|
1
|