On Tuesday, March 5, 2019 at 10:27:47 AM UTC-8, vdelecroix wrote:
>
> Just to give some elements of comparison. Following the specifications 
> of the standard math library in C what MPFR [3] does is that 
>
>   - "floor", "ceil", "round", "trunc" are the standard rounding 
>     functions to some integer in their mathematical definition (ie 
>     independently of the rounding mode) 
>
> Yes, I think this is an important point. We should not deviate from that.
 

> I am fine having extra argument to floor, ceil, round, trunc in 
> sage to ask for bits after the decimal point. But I would keep 
> carefully the above specifications. 
>

I don't think we should have an extra argument. floor, ceil, round, and 
trunc are maps from floats to integers. Rounding with extra digits after 
the (decimal?) point would require a change in return type. Changing 
representation length of a float is a different operation than converting 
it to an integer. 


-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to