On Sun, Nov 29, 2009 at 1:04 PM, Luiz Felipe Martins
<[email protected]> wrote:
> This is how round(x) is in the C library:
> (http://www.gnu.org/s/libc/manual/html_node/Rounding-Functions.html)
>
> Function: double round (double x)
>
>    — Function: float roundf (float x)
>
>        — Function: long double roundl (long double x)
>
>            These functions are similar to rint, but they round
> halfway cases away from zero instead of to the nearest even integer.
>
> I think they just compute round(x) as floor(x+0.5)
>
> Perhaps rounding for rational numbers can be changed to floor(x+1/2),
> accordingly.

This is now trac 7556:

  http://trac.sagemath.org/sage_trac/ticket/7556

William

--

You received this message because you are subscribed to the Google Groups 
"sage-edu" 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-edu?hl=en.


Reply via email to