Hi,
I am getting error -1200 = Number is too large for a DECIMAL data type.
in i4gl, v4.10 on SunOS, Online 5.XX engine.
Is there a way that I can assign a very large Number to any
data type in i4gl??.
the real code is as follows:-
------------------------------
FUNCTION find_gos(of,cr)
define
cr DECIMAL,
of DECIMAL,
x,y DECIMAL(32,32),
i INTEGER,
cc DECIMAL
let x = 1
let y = 1
#---------------------------------------
# now, the for loop fails if
# of >= 3141.2
# cr >= 191
#---------------------------------------
FOR i = 1 to cr
LET x = x * of / i
LET y = x + y
END FOR
LET cc = x / y
RETURN cc
END FUNCTION
Thx,
-Ramki. rnatesan@bactc.com
~