Fix to output of scientific notation for real interval field
Reported by: |
tscrim |
Owned by: |
tscrim |
Priority:
|
major
|
Milestone:
|
sage-5.5
|
Component:
|
misc
|
Keywords:
|
real interval field
|
Cc:
|
|
Merged in:
|
sage-5.5.beta1
|
Authors:
|
Travis Scrimshaw
|
Reviewers:
|
Robert Bradshaw
|
Report Upstream:
|
N/A
|
Work issues:
|
|
Branch:
|
|
Commit:
|
|
Dependencies:
|
|
Stopgaps:
|
|
Currently if you set scientific notation for the real interval field, it does not print in scientific notation.
sage: RIF.scientific_notation(True)
sage: RIF(0.025)
0.025000000000000002?
sage: RIF.scientific_notation()
True
sage: RIF(0.025)
0.025000000000000002?
sage: RIF(0.025).str(no_sci=False)
'2.5000000000000002?e-2'
This is caused by not checking when no_sci
option is None
(and then checking the parent). After patch:
sage: RIF(0.025)
0.025000000000000002?
sage: RIF.scientific_notation(True)
sage: RIF(0.025)
2.5000000000000002?e-2
Change History (8)
Status: |
new →
needs_review
|
Description: |
modified (diff)
|
Reviewers: |
→ Robert Bradshaw
|
Status: |
needs_review →
positive_review
|
Merged in: |
→ sage-5.5.beta1
|
Resolution: |
→ fixed
|
Status: |
positive_review →
closed
|
Please review.