‎2007 Mar 27 4:27 AM
Hi,
My float value is 2.0092323000000000E+05
I want to convert it to char type.
the value should be 200923.23
how to do it.
Regards,
Ravi G
‎2007 Mar 27 4:30 AM
use fm CEVA_CONVERT_FLOAT_TO_CHAR.
but if you are taking at type p variable it will automatically take the value
data v_p type p decimals 2.
v_p = <your float value>
write : / v_p.
regards
shiba dutta
‎2007 Mar 27 4:31 AM
hi
declare a variable of type p decimals 2 and pass it to it..
data a type f value '2.0092323000000000E+05'.
data b type p decimals 2.
b = a.
write a.
write b.
if helpful, reward
Sathish. R
‎2007 Mar 27 4:32 AM
Hi,
Try this..
Convert the float value to type P and then convert it to char..
DATA: PACKED TYPE P DECIMALS 2.
PACKED = FLOAT.
CHAR = PACKED.
Thanks,
Naren