‎2008 Feb 02 12:29 PM
Hi Experts!!
I have simple doubt.
I have a variable having 4 digits after decimals..
I want it to store it in a variable with 2 decimal digits only.
How can I do this without much numerical manipulation.
Thanks in advance..
Prabhas
‎2008 Feb 03 7:03 AM
Hi,
You can do as below :
Data : var1 type p decimals 4 value '10.0000',
var2 type p decimals 2.
var2 = var1.
write : / var2.
Thanks,
Sriram Ponna.
‎2008 Feb 02 12:32 PM
Hi,
declare a variable
data temp type p decimals 2.
temp = variable "(ur var with 4 deci places).
write temp.rounding ll also be done automatically
Cheers,
Will.
‎2008 Feb 03 7:03 AM
Hi,
You can do as below :
Data : var1 type p decimals 4 value '10.0000',
var2 type p decimals 2.
var2 = var1.
write : / var2.
Thanks,
Sriram Ponna.