Skip to Content
0
Former Member
Jul 22, 2005 at 04:22 PM

How to Store large value decimal data

1147 Views

Hi,

I need to do a numeric(divide) operation with larger decimal value. I have given the example below.

var1 = 12345678 ( 8 digits )

Var2 = 98765432 ( 8 digits )

I want to store the above numbers in a variable,

CONCATENATE var1 "." Var2 INTO var3.

var3 = "12345678.98765432"

var4 = var3 / 1000 ( this 1000 is variable between 1 to 100000000 )

var4 = "12345.67898765432"

and then I need to pick 4 digits before decimal and 5 digits after decimal and Post IDoc for Exchange Rate.

Final output needed = "2345.67898"

I am stuck in this place, TYPE P data store only 16 characters.

Please suggest a solution in this case.

Thanks,

Sivanandham.P