Re: [sympy] Interface promise of conversion to float

2021-12-02 Thread Aaron Meurer
I believe it uses round-to-even, but note that the rounding is done in base-2, not base-10. If you're worried about the rounding, you can evaluate the number to more digits using evalf() to see exactly how it rounded. If you want to use a specific base-10 rounding mode, I believe currently the

Re: [sympy] Self-introduction--Interest: Making SymPy easier for new users via documentation

2021-12-02 Thread Aaron Meurer
On Wed, Dec 1, 2021 at 9:12 PM Jeremy Monat wrote: > > Aaron, > > Thanks. Great--the new documentation homepage is much clearer with its > division into 1) Tutorials, 2) How-to Guides, 3) Explanation, and 4) API > Reference. With the old documentation, my mental model of the content >

[sympy] Interface promise of conversion to float

2021-12-02 Thread Damien Desfontaines
Hi all, This feels like a very simple problem, but I couldn't find a clear answer in the documentation. I have a sympy number x and I would like to round it to the nearest float. Suppose I simply use float(x), and that the true value of x is between two successive floats a and b. - If x is