06-27-2006 7:16 PM
Hi,
How can I convert a float number to a numeric number with 3 decimals?
Tks,
Daniela
06-27-2006 7:19 PM
hi Daniela,
Declare it as type <b>P</b>
i.e,
Data : v_float type f,
v_dec type p decimals 3.
v_dec = v_float.
write : v_float, v_dec.
Regards,
Santosh
06-27-2006 7:19 PM
hi Daniela,
Declare it as type <b>P</b>
i.e,
Data : v_float type f,
v_dec type p decimals 3.
v_dec = v_float.
write : v_float, v_dec.
Regards,
Santosh
06-27-2006 7:24 PM
Santosh
I tried to do that but it happens a sintaxe error when I use MOVE Command "v_test muat be a character-type field".
regards,
Daniela
06-27-2006 7:23 PM
06-27-2006 7:25 PM
06-27-2006 7:27 PM
hi Daniela,
I have tried here and i have pasted the code it was not giving me any error did you declare the parameters as i have mentioned above.
06-27-2006 7:30 PM
06-27-2006 7:25 PM
hi daniela,
data f1 type f value 180.
data f2 type p decimals 3.
move f1 to f2.
write: / f1, f2.
07-03-2007 8:59 AM
Hi santhosh,
Thanks for your help, its working for me..
Regards.
Antony