#6116: error in real literal -> RIF conversion
----------------------------+----------------------------------------------
Reporter: robertwb | Owner: somebody
Type: defect | Status: needs_review
Priority: major | Milestone: sage-duplicate/invalid/wontfix
Component: basic | Resolution:
arithmetic | Merged in:
Keywords: | Reviewers:
Authors: | Work issues:
Report Upstream: N/A | Commit:
Branch: | Stopgaps: todo
Dependencies: |
----------------------------+----------------------------------------------
Comment (by vdelecroix):
This is more about floating point rather than real literal
{{{
sage: a = 1.0 * RR(2.1)
sage: type(a)
<type 'sage.rings.real_mpfr.RealNumber'>
sage: RIF(a).lower() == RIF(a).upper() == a
True
}}}
And the last line would be true given '''any''' floating point (with 53
bits of precision).
Though, it would be nice to explain the difference between `RIF(2.1)` and
`RIF(21/10)` in the documentation of `RIF`. Don't you think?
Vincent
--
Ticket URL: <http://trac.sagemath.org/ticket/6116#comment:8>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.