bugGNU Common Lisp - Bugs: bug #47404, some comparisons with float...

 
 

bug #47404: some comparisons with float not-a-number return T

Submitted by:  Robert Dodier <robert_dodier1>
Submitted on:  Mon 14 Mar 2016 03:10:00 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Mon 14 Mar 2016 03:13:50 AM UTC, comment #1:

Also, I note that not-a-number is displayed as #<-nan> as if it were negative. I am guessing that NaN will be displayed correctly (without the minus sign) when the numeric comparison bug is fixed.

Robert Dodier <robert_dodier1>
Mon 14 Mar 2016 03:10:00 AM UTC, original submission:

Numerica comparisons with float not-a-number should always return NIL. But GCL appears to consider NaN to be less than all floats, including itself.

Example with doubles shown here. Same behavior with single floats.

I'm working on Ubuntu 14.04.

Robert Dodier <robert_dodier1>

 

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

Attach File(s):
   
   
Comment:
   

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 robert_dodier1 (Submitted the item)
  •  

    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):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup1