#9306: round incoherent with ceil/floor on rational numbers
--------------------------------+-------------------------------------------
   Reporter:  zimmerma          |       Owner:  AlexGhitza  
       Type:  enhancement       |      Status:  needs_review
   Priority:  minor             |   Milestone:  sage-4.7    
  Component:  basic arithmetic  |    Keywords:  round       
     Author:  Simon Spicer      |    Upstream:  N/A         
   Reviewer:                    |      Merged:              
Work_issues:                    |  
--------------------------------+-------------------------------------------
Changes (by newvalueoldvalue):

  * keywords:  => round
  * status:  new => needs_review
  * author:  => Simon Spicer


Comment:

 The above change alters the behaviour of sage's round() command. Before it
 *always* returned a real double field element; now it defers to an
 element's .round() method if no precision is specified, i.e. a sage
 Integer is returned in these cases. This makes round(x) and x.round()
 agree whenever x has a .round() method.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9306#comment:1>
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.

Reply via email to