On 6/20/2011 8:28 PM, Gnarlodious wrote:
What is the easiest way to get the first number as boolean?

divmod(99.6, 30.1)

Or do I have to say:

flote, rem=divmod(99.6, 30.1)
bool(flote)

divmod(x,y) == x//y, x%y

so bool(x//y)

--
Terry Jan Reedy

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

Reply via email to