#8336: round(x) <> x.round() for x in RealField
--------------------------------+-------------------------------------------
Reporter: zimmerma | Owner: robertwb
Type: defect | Status: needs_info
Priority: critical | Milestone: sage-4.6.1
Component: basic arithmetic | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
--------------------------------+-------------------------------------------
Comment(by zimmerma):
Replying to [comment:5 robertwb]:
> Correction:
>
> {{{
> sage: round(2.5)
> 3
> sage: round(2.5, ndigits=1)
> 2.500000000000
> }}}
it is fine for me that {{{round(x)}}} returns a float, however I don't
understand why it returns
a float of fixed precision (RDF). It should then be called
{{{RDF_round}}}. It would be more
natural to return a float with the same precision as the input.
Paul
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8336#comment:6>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.