Ray Dillinger scripsit:

> Would you be unhappy if there were a distinguished syntax for "bignum"
> values in the fixnum range, where fixnums overflow to inexact and
> bignums yield bignum results?  For example if 

In Q, in which all numbers are boxed, there are only bignums and
flonums, with / producing a flonum in all cases.  Pure, Q's successor,
adds unboxed signed 32-bit ints to these, with the usual twos-complement
rules.  Mixed s32 and bignum arithmetic produces bignum results, and
an unmarked literal will be an s32 if possible, a bignum otherwise.
Bignum literals have a trailing L, as in Python.  % works the same in
both languages.  In both languages, if you load the ratios package then %
will do bignum-bignum divisions with rational results, as in Haskell.

-- 
A rabbi whose congregation doesn't want         John Cowan
to drive him out of town isn't a rabbi,         http://www.ccil.org/~cowan
and a rabbi who lets them do it                 [email protected]
isn't a man.    --Jewish saying

_______________________________________________
r6rs-discuss mailing list
[email protected]
http://lists.r6rs.org/cgi-bin/mailman/listinfo/r6rs-discuss

Reply via email to