Subject: Re: Integer-Arithemtics
From: rpw3@rigden.engr.sgi.com (Rob Warnock)
Date: 1 Jan 2001 12:48:03 GMT
Newsgroups: comp.lang.scheme
Message-ID: <92pua3$jtgqj$1@fido.engr.sgi.com>
Oliver Bandel  <oliver@first.in-berlin.de> wrote:
+---------------
| The output value seem to be evaluated as an arbitrary-length
| integer. No everflow will be created, even if I want the fib(200)
| or the fib(1000) or the fib(10000) ...
| Is this normal behaviour of Scheme?
+---------------

Yes, and Common Lisp as well. It's called "bignum support", and is
usually standard in any serious Scheme or Lisp implementation, e.g.:

	> (expt 2 200)
	1606938044258990275541962092341162602522202993782792835301376
	> (+ 1 (expt 2 200)) 
	1606938044258990275541962092341162602522202993782792835301377
	> 


-Rob

-----
Rob Warnock, 31-2-510		rpw3@sgi.com
SGI Network Engineering		http://reality.sgi.com/rpw3/
1600 Amphitheatre Pkwy.		Phone: 650-933-1673
Mountain View, CA  94043	PP-ASEL-IA