[gambit-list] floating point number representation
Marc Feeley
feeley at iro.umontreal.ca
Mon Aug 20 16:13:39 EDT 2007
On 20-Aug-07, at 3:41 PM, naruto canada wrote:
> hi
>
> (+ 1.0 3.0)
> ;; 4.
>
> can I have "4.0" instead?
> where do I have to change in "lib/_num.scm"? (I am guessing)
In lib/_num.scm change
(##define-macro (macro-chez-fp-syntax) #f)
to
(##define-macro (macro-chez-fp-syntax) #t)
and do a "make".
Note that this violates the Scheme spec (which requires that the
minimum number of digits must be used).
Marc
More information about the Gambit-list
mailing list