ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
PhpOffice\PhpSpreadsheet\Shared\IntOrFloat Class Reference
+ Collaboration diagram for PhpOffice\PhpSpreadsheet\Shared\IntOrFloat:

Static Public Member Functions

static evaluate ($value)
 Help some functions with large results operate correctly on 32-bit, by returning result as int when possible, float otherwise. More...
 

Detailed Description

Definition at line 5 of file IntOrFloat.php.

Member Function Documentation

◆ evaluate()

static PhpOffice\PhpSpreadsheet\Shared\IntOrFloat::evaluate (   $value)
static

Help some functions with large results operate correctly on 32-bit, by returning result as int when possible, float otherwise.

Parameters
float | int$value
Returns
float|int

Definition at line 15 of file IntOrFloat.php.

Referenced by PhpOffice\PhpSpreadsheet\Document\Properties\intOrFloatTimestamp(), PhpOffice\PhpSpreadsheet\Shared\OLE\OLE2LocalDate(), PhpOffice\PhpSpreadsheet\Calculation\Statistical\Permutations\PERMUT(), and PhpOffice\PhpSpreadsheet\Calculation\Statistical\Permutations\PERMUTATIONA().

16  {
17  $iValue = (int) $value;
18 
19  return ($value == $iValue) ? $iValue : $value;
20  }
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: