Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 5 Current »



Function: roundDown()

Rounds a value down to a given number of decimal places.

Syntax

roundDown(listOfValues, decimalPlace)

ArgumentTypeDescription
listOfValuesArrayList of values to be assessed
decimalPlaceIntegerDecimal place precision to be used

Examples

roundDown(in.value, 2)

Where in.value contains [12.343,12.345], roundDown() returns [12.34, 12.34]


Whole Numbers

Use the decimalPlace -1 to round down to the nearest multiple of 10, and -2 to round down to the nearest multiple of 100.


roundDown(187, -1)

returns 180


roundDown(282, -1)

returns 280


roundDown(187, -2)

returns 100

See Also

  • No labels