Is it possible to set for float precision of 50, but to cut trailing zeros 
for finite decimals?
a=Float('0.5',prec=50)
print a/7
Output: 0.071428571428571428571428571428571428571428571428571


a=Float('0.5',prec=50)
print a
Output: 0.50000000000000000000000000000000000000000000000000 (but I want a)

For latex correct output is 0.5
But how to print 0.5 instead of 0.5 with many trailing zeros?


In what cases is Float('some number', prec='') is useful?


-- 
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/0c186425-a373-425b-b27c-ed47d37b39dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to