chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] printing floats


From: Sven . Hartrumpf
Subject: [Chicken-users] printing floats
Date: Tue, 18 Jan 2005 10:21:57 +0100 (CET)

Hi all.

Chicken prints floats like this:
#;1> (write (* 999 999 999.))
997002999.
#;2> (write (* 999 999 999.0))
997002999.

Some other Scheme implementations always add a 0:

#;1> (write (* 999 999 999.))
997002999.0
#;2> (write (* 999 999 999.0))
997002999.0

I think both implementations are correct.
If so, how can I force chicken to add the 0?

Greetings
Sven

Attachment: pgpJgPQEzs3dw.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]