chicken-users
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
[Chicken-users] read / write floats
From
:
Gábor Balázs
Subject
:
[Chicken-users] read / write floats
Date
:
Sat, 25 Aug 2007 22:44:54 +0200
Hello,
I tried the following with chicken 2.6:
(define v1 (/ 1 3))
(call-with-output-file "try.dat"
(lambda (port)
(write v1 port)))
(define v2 (call-with-input-file "try.dat"
(lambda (port)
(read port))))
(print "v1 = " v1)
(print "v2 = " v2)
(print (equal? v1 v2))
(print (= v1 v2))
(print (- v1 v2))
And the result was:
v1 = 0.333333333333333
v2 = 0.333333333333333
#f
#f
3.33066907387547e-16
Is it a known bug?
I tried to report this, but I did not find the easy way.
`bg`
reply via email to
[Prev in Thread]
Current Thread
[
Next in Thread
]
[Chicken-users] read / write floats
,
Gábor Balázs
<=
Re: [Chicken-users] read / write floats
,
Kon Lovett
,
2007/08/25
Re: [Chicken-users] read / write floats
,
Gábor Balázs
,
2007/08/25
Re: [Chicken-users] read / write floats
,
Ivan Raikov
,
2007/08/25
Re: [Chicken-users] read / write floats
,
Kon Lovett
,
2007/08/25
Message not available
Re: [Chicken-users] read / write floats
,
Kon Lovett
,
2007/08/25
Re: [Chicken-users] read / write floats
,
Ivan Raikov
,
2007/08/25
Re: [Chicken-users] read / write floats
,
Zbigniew
,
2007/08/26
Re: [Chicken-users] read / write floats
,
Ivan Raikov
,
2007/08/26
Re: [Chicken-users] read / write floats
,
Gábor Balázs
,
2007/08/26
Re: [Chicken-users] read / write floats
,
Thomas Christian Chust
,
2007/08/26
Prev by Date:
Re: [Chicken-users] Bug in chicken-2.636
Next by Date:
[Chicken-users] Callback question
Previous by thread:
[Chicken-users] Bug in chicken-2.636
Next by thread:
Re: [Chicken-users] read / write floats
Index(es):
Date
Thread