On 3/24/2015 6:39 PM, Jason Swails wrote:


On Mon, Mar 23, 2015 at 8:38 PM, Emile van Sebille <em...@fenx.com

<snip>

    float (("%6.3f" % x)[-4:])


​In general you lose a lot of precision this way...​


Even more if you use %6.1 -- but feel free to flavor to taste.   :)

Emile



--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to