range error
Stephen Messimer
steve at messimercomputing.com
Thu Apr 8 23:56:58 EDT 2004
When I attempt to calculate the factorial of numbers > 169 using the
following function:
function factorial theNumber
if theNumber <= 1 then return 1
else return theNumber * factorial(theNumber -1)
end factorial
I get the following error. Anybody seen this before?
executing at 11:46:47 PM
Type Operators *: range error (overflow)
Object Bed Adequacy
Line else return theNumber * factorial(theNumber -1)
Hint factorial
Is there a work around for this?
OSX 10.2.8, Rev 2.1.2, 512 MB of RAM
Thanks
Steve
Stephen R. Messimer, PA
208 1st Ave. South
Escanaba, MI 49829
http://www.messimercomputing.com
--
Build Computer-Based Training modules FAST with preceptorTools™ --
version 1.0.5 available Now!
More information about the use-livecode
mailing list