Functions10 public, 1 private

Converts the provided string to a decimal value.
publicnumericenforceDecimal
requiredanyvalue
structOPTIONS{}
optionbooleanmergetrue
Converts the provided string to an integer value.
publicnumericenforceInteger
requiredanyvalue
structOPTIONS{}
optionbooleanmergetrue
Converts the specified (decimal) factor to the corresponding percentual representation.
publicnumericfactorToPercentage
requiredanyfactor
Returns the value closest th the specified limits.
publicnumericlimitBetween
requirednumericvalue
requirednumericmin
requirednumericmax
Converts the specified percentual value to the corresponding (decimal) factor.
publicnumericpercentageToFactor
requiredanypercentage
publicnumericrandRange
requirednumericmin
requirednumericmax
Returs a random decimal value within the specified range.
publicnumericrandRangeDecimal
requirednumericmin
requirednumericmax
Precision used to round the random value.
numericscale-1
Returns an integer value (int) if there are no decimal places. Otherwise returns a decimal value (BigDecimal) up to the specified precision.
publicnumericstripTrailingZeros
requirednumericnumber
Maximum number of decimal places to show.
numericscale2
stringroundingROUND_HALF_UP
Converts any numeric value to a decimal value with the desired precision.
publicnumerictoDecimal
requirednumericvalue
numericscale2
stringroundingROUND_HALF_UP
Converts the provided number to a safe string, preventing scientific notation.
publicstringtoSafeNumber
requiredanynumber