Opened 5 years ago
Closed 5 years ago
#22884 closed defect (fixed)
Incorrectly computed precision with leading zeros and decimal point
Reported by: | robertwb | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | sage-8.0 |
Component: | user interface | Keywords: | |
Cc: | Merged in: | ||
Authors: | Robert Bradshaw | Reviewers: | Travis Scrimshaw |
Report Upstream: | N/A | Work issues: | |
Branch: | 97f799f (Commits, GitHub, GitLab) | Commit: | 97f799fc2729119e013e78ee807879c857e8f01e |
Dependencies: | Stopgaps: |
Description
sage: r = .123456789123456789 sage: r.parent() Real Field with 57 bits of precision sage: r = 0.123456789123456789 sage: r.parent() Real Field with 60 bits of precision sage: r = 00.123456789123456789 sage: r.parent() Real Field with 57 bits of precision sage: r =00000.123456789123456789 sage: r.parent() Real Field with 57 bits of precision sage: s = ".123456789123456789" sage: RealNumber(s).parent() Real Field with 57 bits of precision sage: s = "0.123456789123456789" sage: RealNumber(s).parent() Real Field with 60 bits of precision sage: s = "00.123456789123456789" sage: RealNumber(s).parent() Real Field with 57 bits of precision
See https://groups.google.com/forum/#!topic/sage-devel/KhaL5hX08uM
Change History (5)
comment:1 Changed 5 years ago by
- Status changed from new to needs_review
comment:2 Changed 5 years ago by
comment:3 Changed 5 years ago by
- Branch set to u/robertwb/real-prec
- Commit set to 97f799fc2729119e013e78ee807879c857e8f01e
comment:4 Changed 5 years ago by
- Reviewers set to Travis Scrimshaw
- Status changed from needs_review to positive_review
LGTM.
comment:5 Changed 5 years ago by
- Branch changed from u/robertwb/real-prec to 97f799fc2729119e013e78ee807879c857e8f01e
- Resolution set to fixed
- Status changed from positive_review to closed
Note: See
TracTickets for help on using
tickets.
New commits:
Handle leading zeros correctly in significant figure computation.