ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
IntClass.php
Go to the documentation of this file.
1<?php
2
4
6
8{
21 public static function evaluate($number)
22 {
23 try {
24 $number = Helpers::validateNumericNullBool($number);
25 } catch (Exception $e) {
26 return $e->getMessage();
27 }
28
29 return (int) floor($number);
30 }
31}
An exception for terminatinating execution or to throw for unit testing.
static validateNumericNullBool($number)
Many functions accept null/false/true argument treated as 0/0/1.
Definition: Helpers.php:27