If you simply want similar as RoundUP which would be similar as Ceiling.Math the below would give you similar results in tm1.
Code: Select all
## result of ceiling will be same as Ceiling.Math(3.7) in excel: 4
['value'] = N: 3.7;
['ceiling'] = N: ROUND(['value'] + 0.499999, 0);
## result of ceiling of 0.326 will be 1
If we want to round up to the nearest multiple of significance, we can subtract the result of MOD(value, significance) from the original value and then add back the significance.
Code: Select all
## result of ceiling will be same as Ceiling(4.5, 2) in excel: 6
['value'] = N: 4.5;
['significance'] = N: 2;
['ceiling'] = N: ['value'] - MOD(['value'], ['significance']) + ['significance'];
# result of ceiling 0.326 with significance 0.01 will be 0.33