close Warning: Can't synchronize with repository "(default)" (/project/cmucl/public_html/git/cmucl.git does not appear to be a Git repository.). Look in the Trac log for more information.

Opened 3 years ago

Closed 3 years ago

#93 closed defect (fixed)

4d-324 signals a reader error but shouldn't?

Reported by: rtoy Owned by: somebody
Priority: major Milestone:
Component: Core Version: 2014-02
Keywords: Cc:

Description

At the repl, 4d-324 throws a reader error. But the nearest float to 4d-324 is least-positive-double-float so we should probably return that instead of throwing an error.

But values less than 0.5 * least-positive-double-float could be rounded to 0, but I think the reader error is still appropriate. CLHS 2.3.1.1 says exponents that are out of range should signal a reader error.

Change History (1)

comment:1 Changed 3 years ago by toy.raymond@…

  • Resolution set to fixed
  • Status changed from new to closed

commit f9be60b19ca38fbbf34dc64bf5442f119afe2725 Author: Raymond Toy <toy.raymond@…> Date: Sat Mar 1 08:43:26 2014 -0800

Fix ticket 93.

  • Round the number to least-positive-foo-float when possible, but still throw an error if it's too small but not zero.
  • Update comments to mention CLHS 2.3.1.1.
Note: See TracTickets for help on using tickets.