Opened 11 years ago

Last modified 8 years ago

## #12160 new defect

# Fix inconsistent comparison of Python and Sage floats with "nan".

Reported by: | Simon King | Owned by: | Alex Ghitza |
---|---|---|---|

Priority: | major | Milestone: | sage-6.4 |

Component: | basic arithmetic | Keywords: | nan float comparison |

Cc: | Merged in: | ||

Authors: | Reviewers: | ||

Report Upstream: | N/A | Work issues: | |

Branch: | Commit: | ||

Dependencies: | Stopgaps: |

### Description

We have

sage: float(1.1) < float('nan') False sage: 1.1 < float('nan') True

The topic is related with #12149, but the code is independent.

### Change History (4)

### comment:1 Changed 9 years ago by

Milestone: | sage-5.11 → sage-5.12 |
---|

### comment:2 Changed 9 years ago by

Milestone: | sage-6.1 → sage-6.2 |
---|

### comment:3 Changed 9 years ago by

Milestone: | sage-6.2 → sage-6.3 |
---|

### comment:4 Changed 8 years ago by

Milestone: | sage-6.3 → sage-6.4 |
---|

**Note:**See TracTickets for help on using tickets.