close Warning: Can't synchronize with repository "(default)" ("(default)" is not readable or not a Git repository.). Look in the Trac log for more information.

Opened 11 years ago

Closed 11 years ago

#93 closed defect (fixed)

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

Reported by: Raymond Toy 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 11 years ago by toy.raymond@…

Resolution: fixed
Status: newclosed

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.