ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Exp.php
Go to the documentation of this file.
1<?php
2
4
6
7class Exp
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 exp($number);
27 }
28}
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