[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to stay in fixnum range?

From: Neil Jerram
Subject: Re: How to stay in fixnum range?
Date: Wed, 21 Jan 2009 09:00:00 +0000

2009/1/19 Panicz Maciej Godek <address@hidden>:
> Hi,
> I've been writing a program that has something to do with
> time processing. It uses the function get-internal-real-time
> to measure time in an infinite loop.
> I haven't been using running the program long enough to
> experience the range-exceeding phenomenon, but I thought
> of avoiding it in advance.
> The problem may appear when I add some number to the
> return value of get-internal-real-time -- what if, during addition,
> the scheme fixnum limit is exceeded and the variable becomes
> a bignum?

It becomes a bignum.  Why is that a problem?

(Serious question, because the best solution may depend on why this
actually matters...)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]