Rounding
3 min
the rounding processor rounds a number to a specified number of decimal digits, using the rounding method you choose why use rounding use this processor to simplify a number for display or downstream processing while keeping it close to its original value, for example, rounding a sensor reading to two decimal places before it reaches a dashboard how it works set digits to the number of decimal places to keep for example, with digits set to 2 , a result might be 10 22 or 10 44 , but not 10 556 , since only two decimal places are kept enter 0 to drop all decimal places and return an integer method determines how the processor rounds roundnearest rounds to the nearest value, for example, 10 6 becomes 11 and 10 1 becomes 10 roundup always rounds up to the next value, for example, both 10 6 and 10 1 become 11 rounddown always rounds down to the next value, for example, both 10 6 and 10 1 become 10 roundeven rounds to the nearest integer, rounding exact ties to the nearest even number digits doesn't apply to this method parameters parameter details digits the number of decimal places to round to enter 0 to return an integer doesn't apply when method is roundeven method the rounding method to use roundnearest, roundup, rounddown, or roundeven pass through value determines whether the processor's output is the rounded value or the original unchanged input value related topics use the rounding function docid\ t guiso uczh0pasa12w