‎2007 Apr 10 1:14 PM
Hi
how can i convert 5.6000000000000000E+03
to 5600?
Maybe there is any Fm taht do it
Thanks
‎2007 Apr 10 1:21 PM
Hi..
<b>data: w_f type f value '5.6000000000000000E+03',
w_i type i.
w_i = w_f.
write w_i.</b>
‎2007 Apr 10 1:16 PM
Hi,
Move that value to <b>type P</b> ( <b>Packed</b> ) field.
Regards,
Balavardhan.K
‎2007 Apr 10 1:17 PM
‎2007 Apr 10 1:23 PM
See this
data : var type p ,
var1 type f value '5.6000000000000000E+03'.
move : var1 to var.
write : var.
you will get 5,600 in <b>VAR</b>.
‎2007 Apr 10 1:21 PM
Hi..
<b>data: w_f type f value '5.6000000000000000E+03',
w_i type i.
w_i = w_f.
write w_i.</b>
‎2007 Apr 10 1:27 PM
Hi..,
Just move that value into a variable of type INTEGER ( i.e either Type P or I ).. it will be automatically converted to 5,600.
Check this code..
<b>
data w_fload type f value '5.6000000000000000E+03'.
data w_int type i.
w_int = w_float.
write w_int.
*****************************************
The output is 5,600.
*****************************************</b>
reward all helpful answers..
sai ramesh