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

Re: [Scheme-reports] Padding/placeholders (hashes) in numerical syntax

At Tue, 16 Aug 2011 16:01:45 -0400,
John Cowan wrote:
> This is why ISO changed C to do single-float expressions in single-float
> arithmetic; the pre-ANSI practice was that all float operations were
> done in double float.  But in Racket (eqv? 1.0f0 1.0e0) returns #t and
> so does (= (/ 1.0f0 3.0f0) (/ 1.0e0 3.0e0)).

You're probably running a Racket that doesn't have single-precision
float support enabled, which causes 1.0f0 to be double-precision. I
get `#f' in both cases.

Single-precision float support is enabled by default in the current
release, but that wasn't the case until recently.


Scheme-reports mailing list