roundUp
Function: roundUp()
Rounds a value up to a given number of decimal places.
Syntax
roundUp(listOfValues, decimalPlace)
Argument | Type | Description |
---|---|---|
listOfValues | Array | List of values to be assessed |
decimalPlace | Integer | Decimal place precision to be used |
Examples
roundUp(in.value, 2)
Where in.value contains [12.343,12.345], roundUp() returns [12.35, 12.35]
Whole Numbers
Use the decimalPlace -1
to round up to the nearest multiple of 10, and -2
to round up to the nearest multiple of 100.
roundUp(187, -1)
returns 190
roundUp(282, -1)
returns 290
roundUp(182, -2)
returns 200