Functions10 public, 1 private
| Converts the provided string to a decimal value. | |||
| public | numeric | enforceDecimal | |
| required | any | value | |
| struct | OPTIONS | {} | |
| option | boolean | merge | true |
| Converts the provided string to an integer value. | |||
| public | numeric | enforceInteger | |
| required | any | value | |
| struct | OPTIONS | {} | |
| option | boolean | merge | true |
| Converts the specified (decimal) factor to the corresponding percentual representation. | |||
| public | numeric | factorToPercentage | |
| required | any | factor | |
| Returns the value closest th the specified limits. | |||
| public | numeric | limitBetween | |
| required | numeric | value | |
| required | numeric | min | |
| required | numeric | max | |
| Converts the specified percentual value to the corresponding (decimal) factor. | |||
| public | numeric | percentageToFactor | |
| required | any | percentage | |
| public | numeric | randRange | |
| required | numeric | min | |
| required | numeric | max | |
| Returs a random decimal value within the specified range. | |||
| public | numeric | randRangeDecimal | |
| required | numeric | min | |
| required | numeric | max | |
| Precision used to round the random value. | |||
| numeric | scale | -1 | |
| Returns an integer value (java.lang.Integer) if there are no decimal places. Otherwise returns a decimal value (java.math.BigDecimal) up to the specified precision. | |||
| public | numeric | stripTrailingZeros | |
| required | numeric | number | |
| Maximum number of decimal places to show. | |||
| numeric | scale | 2 | |
| string | rounding | ROUND_HALF_UP | |
| Converts any numeric value to a decimal value with the desired precision. | |||
| public | numeric | toDecimal | |
| required | numeric | value | |
| numeric | scale | 2 | |
| string | rounding | ROUND_HALF_UP | |
| Converts the provided number to a safe string, preventing scientific notation. | |||
| public | string | toSafeNumber | |
| required | any | number | |