News for hackers. Stuff that matters.
Re:Ask HN: How to rediscover the joy of programming? by verandacoffee on Tuesday April 14, 2020 @05:22AM (#22864046)
sbcl (and other Common Lisps) uses what you want it to use: read-default-float-format

(setf read-default-float-format 'single-float) (+ 0.1 0.2) => 0.3

(setf read-default-float-format 'double-float) (+ 0.1 0.2) => 0.30000000000000004

On LispWorks 7.0 I get 0.30000000000000005 for double-float. Hmm.

There are no comments on this comment yet.