Hi,
I am getting error -1200 = Number is too large for a DECIMAL data type.
Is there a way to store a very large number?.
Using i4gl, Version 4.10 on SunOS.
Real world is:
--------------
FUNCTION find_gos(of,cr)
DEFINE
of DECIMAL,
cr INTEGER,
x,y DECIMAL(32,32),
i INTEGER,
cc DECIMAL
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# The for loop fails if
# of > 314.2
# cr > 190
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
let x = 1
let y = 1
FOR i = 1 to cr
LET x = x * of / i
LET y = x + y
END FOR
LET cc = x / y
RETURN cc
END FUNCTION
Any help??
Thx,
-ramki