Strictly check that the provided value is numeric or throw an exception
A value to check
The name of the value to be shown at the beginning of the exception message
The rest of the exception message
void
Strictly check that the provided value is a positive integer or throw an exception
A value to check
The name of the value to be shown at the beginning of the exception message
The rest of the exception message
void
Generate a random integer between the specified range (both extremes are included).
lowest possible value (negative values are allowed)
highest possible value (negative values are allowed)
A random integer value between min and max
Get the number represented by the given value
A value to convert to a number
number The numeric type representation from the given value. For example, a string '0001' will return 1
Tells if the given value is a numeric integer or not
A value to check
true if the given value is a numeric integer or represents a a numeric integer value, false otherwise
Tells if the given value is numeric or not
A value to check
true if the given value is numeric or represents a numeric value, false otherwise
Generated using TypeDoc
Common operations and tools related with numbers