[Top][All Lists]

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

Re: Real predicate in C

From: Marius Vollmer
Subject: Re: Real predicate in C
Date: 19 Jun 2002 13:41:37 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Steve Tell <address@hidden> writes:

> On Wed, 19 Jun 2002, Hilaire Fernandes wrote:
> > If the gh_real predicate does not exist, what is the proper way to 
> > implement it?
> Try:
>       SCM_REALP(scmobj)

That's unfortunately not the same as 'real?' in Scheme.  It is only
true for numbers represented as floating point, but is false for
integers, for example.  Yes, it's a mess.

> Unfortunately, it looks like the only way to learn this is to read
> <libguile/numbers.h> (and ignore lots of implementation details).

The manual has scm_real_p right next to 'real?'.

reply via email to

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