2008 May 15 2:42 PM
hi all,
i'm having a record with value 12345.6 This shall be rounded to 12345 and not to 12346 in output.
can anyone tel me the solution for this..
thanks
sunny.
2008 May 15 2:48 PM
Hi,
data : val type p decimals 2.
declare like that.
then that variable value shows decimals in output.
Reward if useful.
Regards,
Narasimha
2008 May 15 2:46 PM
Hi,
Do the declaration like this.
data : v_num type P decimals 0.
v_num = 12345.6
write : / v_num.
output : 12345.
Hope it helps you.
regards
Sandeep Reddy
2008 May 15 3:09 PM
as per ur answer i'm getting 12346 in output.but i need 12345.
can u pls once again go through it.
can u pls suggest me any FM is there?
2008 May 15 3:24 PM
2008 May 15 3:30 PM
2008 May 15 2:48 PM
Hi,
data : val type p decimals 2.
declare like that.
then that variable value shows decimals in output.
Reward if useful.
Regards,
Narasimha