>
> On a tangent, for code that uses machine floats/doubles, do not round to 
> decimals, round to binary digits. 
> Otherwise, your interval bounds will be inaccurate due to rounding 
> issues between decimal and binary, making it useless to control 
> algorithmic inaccuracy. 
>

 Exactly my problem. Multiplying and using ceil might cause inaccuracy.
Is it possible to round to the nearest floating point value, but rounding 
up.
Something like `round`, but which always rounds up or rounds down.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sympy/-/XfUXSr4jsBAJ.
To post to this group, send email to sympy@googlegroups.com.
To unsubscribe from this group, send email to 
sympy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to