‎2006 Aug 17 4:56 PM
Hi Friends,
I have a character field with the following value
114,3200 - (a negative value),when i copy it to a
float value,the -ve sign is lost,how do i retain -ve value
for a float value.
regards
kaushik
‎2006 Aug 17 5:02 PM
hi Hedge,
Try taking that value to type p and then pass it to type f .. i guess this way it should work ..
Regards,
santosh
‎2006 Aug 17 5:03 PM
Hi,
check this :
this is working for me.
data x_test(10) type c,
x_result type p.
x_test = '1143200 -'.
move x_test to x_result.
write x_result.Regards
Appana
‎2006 Aug 17 5:10 PM
hi,
Try this code.
data: v_char(10) type c value '2,389.56-',
v_float type f.
translate v_char using ', '.
translate v_char using '. '.
condense v_char no-gaps.
v_float = v_char.
write 😕 v_float.
Regards,
Sailaja.
‎2006 Aug 17 5:14 PM
You can make use of the fm: HRCM_STRING_TO_AMOUNT_CONVERT.
rEGARDS,
rAVI