10-31-2007 10:25 AM
Hi experts,
In a report i need to convert float value to the data type 'DEC'. How to convert it. Is there any function module for this conversion.
Thanks and Regards,
Vaibhav Tiwari.
10-31-2007 10:27 AM
try like this
data : vp type p decimals 3.
vp = <your float value>.
write : / vp.
regards
shiba dutta
10-31-2007 10:27 AM
try like this
data : vp type p decimals 3.
vp = <your float value>.
write : / vp.
regards
shiba dutta
10-31-2007 10:30 AM
Hi ..
We can do like this...
Data : V_float type F value '12345.67'.
Data: V_dec type P Decimals 2.
Write:/ V_float exponent 0. "This will display it like Type P
or
Write V_float to V_dec EXPONENT 0.
Write:/ V_dec.
reward if Helpful.
<b></b>