Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Conversion urgent

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

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