/2.0/Tests/Math/abs.php
PHP | 11 lines | 10 code | 1 blank | 0 comment | 0 complexity | 8e2a73600bed13d963d2815cce4530ef MD5 | raw file
Possible License(s): CPL-1.0, GPL-2.0, CC-BY-SA-3.0, MPL-2.0-no-copyleft-exception, Apache-2.0
- [expect php]
- [file]
-
- <?php
- echo $abs = abs(-4.2); // $abs = 4.2; (double/float)
- echo "\n";
- echo $abs2 = abs(5); // $abs2 = 5; (integer)
- echo "\n";
- echo $abs3 = abs(-5); // $abs3 = 5; (integer)
- echo "\n";
- ?>