Ticket #962 (closed defect: fixed)
[with patch, with positive revew] automatic precision extension for long decimal literals does very strange things
| Reported by: | cwitty | Owned by: | mhansen |
|---|---|---|---|
| Priority: | major | Milestone: | sage-2.8.15 |
| Component: | basic arithmetic | Keywords: | |
| Cc: | Author(s): | ||
| Report Upstream: | Reviewer(s): | ||
| Merged in: | Work issues: |
Description
Long decimal literals become floating-point numbers whose precision depends on the length of the input literal in characters. See this script for some of the confusing (and, in my opinion, wrong) behavior that results.
sage: (1.10000000000000000000).prec() 73 sage: (1.10000000000000000000e0).prec() 79 sage: (1e-25).prec() 53 sage: (0.0000000000000000000000001).prec() 89 sage: (00000000.0000000000000000000000001).prec() 112
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

