Defines the error message for an exception when a non-numeric value is detected.
Format a given value to a numeric string. If the conversion is not possible, an exception will be thrown
A value to format
The decimal divider to use. possible values are '.' and ','. It will be auto detected If set to empty string
The formatted numeric string.
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
The decimal divider to use. Possible values are '.' and ','. If not provided, it will be auto-detected.
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
Checks if the given value is numeric.
A value to check.
The decimal divider to use. Possible values are '.' and ','. If not provided, it will be auto-detected.
true if the given value is numeric, false otherwise.
Generated using TypeDoc
Common operations and tools related with numbers