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


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

Submitted by:  Robert Dodier <robert_dodier>
Submitted on:  Sun Aug 27 03:51:03 2006  
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Thu Nov 21 22:02:27 2013, comment #1:

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

Camm Maguire <camm>
Project Administrator
Sun Aug 27 03:51:03 2006, 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.


>(* 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 File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu Nov 21 22:02:27 2013cammStatusNone=>Fixed

    Back to the top

    Powered by Savane 3.1-cleanup1