03-15-2007 6:10 PM
Is there any function Module that will roynd a number .
Eg
3.3 = 4,
3.6 = 4.
I have done using MOD and DIV functions but was wondering if a FM exists.
Madhu.
03-15-2007 6:14 PM
03-15-2007 6:13 PM
03-15-2007 6:14 PM
03-15-2007 6:17 PM
I always want to round to the upper number.
Eg , 3.7 = 4 and even 3.1 = 4.
MAdhu
03-15-2007 6:18 PM
Hi,
Please try this.
data: p1 type p decimals 2 value '3.3',
p2 type p decimals 2 value '3.7',
i type i.
i = p1.
write: / i.
i = p2.
write: / i.
Regards,
Ferry Lianto
03-15-2007 6:23 PM
Hi,
IF You want to Round up...You have to use CEIL
If you want to Round down..You have to use the function FLOOR
THanks,
Naren