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

*To*: soo <tilde@xxxxxxxxxxx>*Subject*: Re: Comments and some bugs*From*: Jens Axel Søgaard <jensaxel@xxxxxxxxxxxx>*Date*: Thu, 25 Mar 2004 19:07:38 +0100*Cc*: srfi-54@xxxxxxxxxxxxxxxxx*Delivered-to*: srfi-54@xxxxxxxxxxxxxxxxx*In-reply-to*: <874qsdyugv.fsf@xxxxxxxxxxx>*References*: <4060631C.9040408@xxxxxxxxxxxx> <87d673v6az.fsf@xxxxxxxxxxx> <4061BC7E.8020306@xxxxxxxxxxxx> <874qsdyugv.fsf@xxxxxxxxxxx>*User-agent*: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113

soo wrote:

* From: Jens Axel Søgaard <jensaxel@xxxxxxxxxxxx>

> (fmt -5.0 0 #\space 10 + 'e) | . fmt: exact number cannot have a decimal point | 10 depth (and depth (eq? exactness (quote e))) ; Why not? > (fmt -5 0 #\space 10 + 'e) | . fmt: exact number cannot have a decimal point 10 depth (and depth (eq? exactness (quote e))) R5RS says: If the written representation of a number has no exactness prefix, the constant may be either inexact or exact. It is inexact if it contains a decimal point, an exponent, or a "#" character in the place of a digit, otherwise it is exact.

Yes? What the above says is that if the reader sees a number *without exactness prefix* such as "-5.0" then it by default shall read it as inexact if there is decimal dot. If there is an exactness prefix the above rule doesn't apply since, it is obvious whether the number read is exact or inexact. Example: > (exact? #e-5.0) #t > (exact? -5.0) #f -- Jens Axel Søgaard

**References**:**Comments and some bugs***From:*Jens Axel Søgaard

**Re: Comments and some bugs***From:*soo

**Re: Comments and some bugs***From:*Jens Axel Søgaard

**Re: Comments and some bugs***From:*soo

- Prev by Date:
**Re: Comments and some bugs** - Next by Date:
**Re: a preface** - Previous by thread:
**Re: Comments and some bugs** - Next by thread:
**a preface** - Index(es):