bugGNU Common Lisp - Bugs: bug #17541, floating point special values...

 
 

bug #17541: floating point special values provoke "Can't print a non-number"

Submitter:  Robert Dodier <robert_dodier>
Submitted:  Sun 27 Aug 2006 03:51:03 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 21 Nov 2013 10:02:27 PM UTC, comment #1: 

Thanks for your report!  (setq si::*print-nans* t) allows the printing of non-numbers.

Camm Maguire <camm>
Group administrator
Sun 27 Aug 2006 03:51:03 AM UTC, original submission:  

GCL 2.6.7 on Linux: GCL is happy enough to compute floating point infinity and not-a-number, but then it complains "Can't print a non-number" if an attempt is made to display the result.

e.g.

>(* 2 most-positive-double-float)


Error in SYSTEM:TOP-LEVEL [or a callee]: Can't print a non-number.

>(* 2 most-negative-double-float)


Error in SYSTEM:TOP-LEVEL [or a callee]: Can't print a non-number.

>(- ( 2 most-positive-double-float) ( 2 most-positive-double-float))


Error in SYSTEM:TOP-LEVEL [or a callee]: Can't print a non-number.

I didn't check GCL's treatment of signed zero (dunno how to get GCL to compute a signed zero).

Robert Dodier <robert_dodier>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by camm (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-11-21 camm StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code