Function ROUNDUP
Rounds a number (away from zero) to a specified number of decimals
Usage
ROUNDUP(number, [num_digits])
Parameters
| number |
(Required) The number |
| num_digits |
If zero or positive, the number of decimals to keep. If negative, the number digit to the left of the decimal point to turn to 0. Default is 0 which removes all decimals. |
Examples
Reminders
A text containing digits is not handled as a number. To have an actual number:
- use the
@NUMBER_QUESTIONto set the variable - write a numeric value directly in the code without quotes, ex:
age >= 18 - use a function which converts to a number:
NUMBER(text_containing_numbers) - use a function which returns a number:
FIND("world", "hello everybody")