Common operations and tools related with numbers
package |
Default |
---|
generateRandomInteger(integer $min, integer $max) : integer
Throws |
|
---|
integer
lowest possible value (negative values are allowed)
integer
highest possible value (negative values are allowed)
integer
A random integer value between min and max
getNumeric(mixed $value) : \org\turbocommons\src\main\php\utils\number
mixed
A value to convert to a number
\org\turbocommons\src\main\php\utils\number
The numeric type representation from the given value. For example, a string '0001' will return 1
isInteger(mixed $value) : boolean
mixed
A value to check
boolean
true if the given value is a numeric integer or represents a numeric integer value, false otherwise
isNumeric(mixed $value) : boolean
mixed
A value to check
boolean
true if the given value is numeric or represents a numeric value, false otherwise