On 2010-04-01, at 7:59 PM, Robert H wrote:
(- 1.5 1/2)
(* 3 1/2)
3/2
(/ 1.5 3/4)
Is there a reason that Gambit is dropping the trailing zero on those? Just "because"?
Why print more digits than necessary? All of these external representations are equal
2. 2.0 2.00 2.000
so why not choose the shortest one?
If you want to switch to the syntax with the single trailing zero (which is what Chez Scheme uses) then you can modify lib/_num.scm so that the line
(##define-macro (macro-chez-fp-syntax) #f)
now reads
(##define-macro (macro-chez-fp-syntax) #t)
Then do a "make".
Marc