ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Absolute.php
Go to the documentation of this file.
1 <?php
2 
4 
6 
7 class Absolute
8 {
18  public static function evaluate($number)
19  {
20  try {
21  $number = Helpers::validateNumericNullBool($number);
22  } catch (Exception $e) {
23  return $e->getMessage();
24  }
25 
26  return abs($number);
27  }
28 }
static validateNumericNullBool($number)
Many functions accept null/false/true argument treated as 0/0/1.
Definition: Helpers.php:27