Functions8 public, 1 private

Converts the provided string to a decimal value.
publicnumericenforceDecimal
requiredanyvalue
structOPTIONS{}
Converts the provided string to an integer value.
publicnumericenforceInteger
requiredanyvalue
structOPTIONS{}
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
Returs a random decimal value within the specified range.
publicnumericrandRangeDecimal
requirednumericmin
requirednumericmax
Precision used to round the random value.
numericscale-1
Returns an integer if there are no decimal places. Returns a decimal value up to the specified precision and strips the traling zeros.
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