Michele La Monaca scripsit:

> > Chicken uses the local C's idea of number-to-string conversion.
> 
> Not the best approach I think. I would rather prefer a consistent behavior.

If you want a specific output format, use the fmt egg.

> Being a valid Scheme number it's not a valid reason to dislay it as
> it is, IMHO.

R5RS/R7RS merely require that "the result contains a decimal point
and is expressed using the minimum number of digits (exclusive of
exponent and trailing zeroes) needed to make the above expression true"
(s.v. `number->string`).  Both "1." and "1.0" satisfy that rule.

-- 
No saves, Antonio, loke es morirse en su lingua. Es komo            John Cowan
kedarse soliko en el silensyo kada dya ke Dyo da, komo          co...@ccil.org
ser sikileoso sin saver porke.                      http://www.ccil.org/~cowan
                        --Marcel Cohen, 1985

_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to