2006 Jun 27 7:16 PM
Hi,
How can I convert a float number to a numeric number with 3 decimals?
Tks,
Daniela
2006 Jun 27 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
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
2006 Jun 27 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
2006 Jun 27 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
2006 Jun 27 7:23 PM
2006 Jun 27 7:25 PM
2006 Jun 27 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.
2006 Jun 27 7:30 PM
2006 Jun 27 7:25 PM
hi daniela,
data f1 type f value 180.
data f2 type p decimals 3.
move f1 to f2.
write: / f1, f2.
2007 Jul 03 8:59 AM
Hi santhosh,
Thanks for your help, its working for me..
Regards.
Antony
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |