Re: Remove integer from float number



Derek Basch wrote:
How can I return:

".666"

from float:

"0.666"

This is what I have so far:

"%.6f" % x

Thanks Everyone,
Derek Basch


This works but I'm not entirely sure I know what you are
trying to accomplish.

("%.3f" % x)[1:]


-Larry Bates
.