Opened 10 years ago

Last modified 8 years ago

#8896 needs_info defect

0.0000000000000000000000000000 is parsed completely differently than 1.0000000000000000000000000000 for no good reason — at Initial Version

Reported by: was Owned by: AlexGhitza
Priority: minor Milestone: sage-pending
Component: basic arithmetic Keywords: sd32
Cc: jason Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description

In Sage 0.0 and 0.00000000000000000000000000000000000000 should not denote the same thing, though sadly they do. Note, however, that 1.0 and 1.00000000000000000000000000000000000000 are different in Sage (as I expect):

sage: 0.0
0.000000000000000
sage: 0.00000000000000000000000000000000000000
0.000000000000000
sage: parent(0.00000000000000000000000000000000000000)
Real Field with 53 bits of precision
sage: 1.00000000000000000000000000000000000000
1.0000000000000000000000000000000000000
sage: 1.0
1.00000000000000
sage: parent(1.00000000000000000000000000000000000000)
Real Field with 130 bits of precision
sage: parent(1.0)
Real Field with 53 bits of precision

I consider the above inconsistency a bug.

Change History (0)

Note: See TracTickets for help on using tickets.