Differences Between: [Versions 400 and 401] [Versions 400 and 402] [Versions 400 and 403]
1 <?php 2 3 namespace PhpOffice\PhpSpreadsheet\Calculation\MathTrig; 4 5 use PhpOffice\PhpSpreadsheet\Calculation\Exception; 6 7 class Absolute 8 { 9 /** 10 * ABS. 11 * 12 * Returns the result of builtin function abs after validating args. 13 * 14 * @param mixed $number Should be numeric 15 * 16 * @return float|int|string Rounded number 17 */ 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 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body