Am 29.03.2014 14:38, schrieb Christophe Bal:
Does Sympy supports something like Decimal("1.234") of the standard module
decimal ? This could do the job.
If that conversion goes through a Python float, this would already incur
a loss of precision because 1.234 is not a multiple of a power of 0.5.
On the other hand, Sympy should print something like Float("1.234", 10) so
as to say to the user that a float with a mantisse of 10 digits is used.
It couldn't. There is no such thing as a mantissa of 10 decimal digits,
it's roughly 30 binary digits.
Good or wrong advices ? Is it feasible ?
Feasibly: certainly.
Good advice: Not sure. It really depends on what you're doing with SymPy.
I think the most important part is that SymPy should never introduce a
Float on its own. (I do not believe it does, but then I never checked
every line of code in SymPy.)
Other than that, I do not think it matters that much. If somebody uses
Float, they'll get what they deserved IMHO - and if they know what
they're doing they might even get away with it.
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit
https://groups.google.com/d/msgid/sympy/5336D267.1030803%40durchholz.org.
For more options, visit https://groups.google.com/d/optout.