PageRenderTime 47ms CodeModel.GetById 23ms RepoModel.GetById 1ms app.codeStats 0ms

/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
  1. [expect php]
  2. [file]
  3. <?php
  4. echo $abs = abs(-4.2); // $abs = 4.2; (double/float)
  5. echo "\n";
  6. echo $abs2 = abs(5); // $abs2 = 5; (integer)
  7. echo "\n";
  8. echo $abs3 = abs(-5); // $abs3 = 5; (integer)
  9. echo "\n";
  10. ?>