Re: [Scheme-reports] Numerical example (real? -2.5+0.0i)
John Cowan 15 Aug 2011 15:00 UTC
Jussi Piitulainen scripsit:
> If the written representation of a number has no exactness prefix,
> ... [the constant] is inexact if it _contains a decimal point_, an
> exponent, or a "#" character in the place of a digit [my emphasis]
>
> For what it's worth:
>
> guile> (exact? 0.0)
> #f
Just so, and the same for all the other Schemes in my suite except Scheme 9,
which has arbitrary-precision decimal floating point and no inexact numbers.
--
John Cowan cowan@ccil.org http://www.ccil.org/~cowan
Statistics don't help a great deal in making important decisions.
Most people have more than the average number of feet, but I'm not about
to start a company selling shoes in threes. --Ross Gardler
_______________________________________________
Scheme-reports mailing list
Scheme-reports@scheme-reports.org
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports