04-15-2006 6:48 AM
Hi All,
I have a program in which i dont want decimal values.So i am moving the value from Floating point to int4.Now i have a problem that one of the values is '3.0114e+09' and more and its giving a dump due to overflow .Doe any know how to sole this .
the type for
eg
Data v_var type F value '3.0114e+09'.
data v_int type int4.
move v_var to v_int.
write: / v_var, v_int.
the code in my program is
MOVE TIME_SERIES_ITEM-TIME_SERIES_VALUE TO WA_DOWNLOAD-M.
TIME_SERIES_ITEM-TIME_SERIES_VALUE is of type /SAPAPO/FLTP ie is of type FLTP length 16 and decimals 16
WA_DOWNLOAD-M is of type int4.
Regards
Ahasan
04-15-2006 6:59 AM
Hi,
Make sure you have the "Fixed Point Arithmetic" checked in the attributes of the program and declare your variable as P DECIMALS 0.
Regards,
Ravi
04-15-2006 6:59 AM
Hi,
Make sure you have the "Fixed Point Arithmetic" checked in the attributes of the program and declare your variable as P DECIMALS 0.
Regards,
Ravi