guile-devel
[Top][All Lists]
Advanced

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

Re: Why 'inexact' and 'exact' doesn't check 'number?' first?


From: Daniel Hartwig
Subject: Re: Why 'inexact' and 'exact' doesn't check 'number?' first?
Date: Wed, 12 Dec 2012 14:39:48 +0800

On 12 December 2012 14:32, Mark H Weaver <address@hidden> wrote:
> Daniel Hartwig <address@hidden> writes:
>> On 12 December 2012 13:55, Nala Ginrut <address@hidden> wrote:
>>> Are you suggesting I use (is-a? obj <fraction>) for 'fraction?' ?
>>
>> Absolutely not.  Use inexact? if you wish to determine that the
>> *storage* of a value is using floating point format.
>
> Apologies in advance for being pedantic, but there is no guarantee that
> inexact numbers are represented in floating point format.  Having said
> that, I'm not aware of any current Scheme implementation that uses a
> different representation for inexacts.

Quite right.

Pedantism is appropriate given the context of writing a Scheme
expression printer.



reply via email to

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