range error - or "How to take the factorial of a huge number"

Dar Scott dsc at swcp.com
Fri Apr 9 01:59:06 EDT 2004


On Thursday, April 8, 2004, at 11:15 PM, Jim Witte wrote:

> I don't know how you get around this one though, short of using a 
> CPS'd function as an XCMD.

I have used collections of numbers to represent numbers.

> There *might* be a way to split the number up into smaller units, and 
> then combine them at the end in some way, but I have no idea how - I'm 
> thinking of the "Saturn" BCD architecture used by some calculators, 
> and the recursive fast-multiply algorithm for multiplying truly huge 
> numbers (hundreds or thousands of digits each..)

Hmmm.  It is not clear to me whether Stephen needs more digits or just 
a greater range, that is, a greater exponent in is scientific notation.

Dar Scott



More information about the use-livecode mailing list