Am 29.03.2014 19:14, schrieb Christophe Bal:
If that conversion goes through a Python float, ...No. If the user types 1.234, this will be automatically a float, because this is the way Python works, but if he really needs a decimal, he has to explicitly use of Decimal("1.234"), because this is the way Python works.
I'd agree if you had written Decimal(1.234) in the part you snipped.
It was Decimal("1.234") though.
I think the most important part is that SymPy should never introduce a Float on its own.Yes, I agree.If somebody uses Float, they'll get what they deserved IMHO...It could be useful to know some technical informations.
Float arithmetic in Python is essentially what the C runtime offers.Which is essentially just the hardware, which can vary in its behaviour, particularly when it comes to the precision loss flag.
-- 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/53372049.1040505%40durchholz.org. For more options, visit https://groups.google.com/d/optout.
