ARR |
arr rounds a number to the next nearest number.
arr( exp_num1, exp_num2 )
|
Element |
Description |
Restrictions |
|
exp_num1 |
Numerical expression |
None. |
|
exp_num2 |
Numerical expression |
None. |
# tax calculation (Swiss -> rounded to 5 centimes)INCTAX = arr ( EXTAX * (1+RATE/100), 0.05 )
arr(X,Y) returns:
int(X/Y+0.5)*Y if Y is non null,
X if Y is null.
The result is a Decimal type.
|
Error |
Description |
|
ERMODE (10) |
One of the arguments is not a numerical type. |
|
|