Possible bug when reading/writing large inexact numbers

41 views
Skip to first unread message

Greg Rosenblatt

unread,
Mar 7, 2021, 8:31:42 PM3/7/21
to Racket Users
Large inexact numbers may change values after a second round trip between read and write.  I was expecting to reach a fixed point after the first round trip.  Is this a bug?

Welcome to Racket v7.8 [cs].
> 4.57030e+53
4.5703e+53
> 4.5703e+53
4.5702999999999995e+53

Sorawee Porncharoenwase

unread,
Mar 7, 2021, 8:42:33 PM3/7/21
to Greg Rosenblatt, Racket Users
This is already fixed. Racket 8.0 doesn't have this issue.

--
You received this message because you are subscribed to the Google Groups "Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to racket-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/28f2c566-472f-48eb-881f-028dad5b1285n%40googlegroups.com.

Greg Rosenblatt

unread,
Mar 7, 2021, 8:52:32 PM3/7/21
to Racket Users
Great, thanks.  Out of curiosity, where in the reader was this bug originally?  Can you point me to a diff?

Sam Tobin-Hochstadt

unread,
Mar 7, 2021, 9:45:48 PM3/7/21
to Greg Rosenblatt, Racket Users
Reply all
Reply to author
Forward
0 new messages