[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Warnings



Casey Duncan wrote:
And using round() will not help you, since round() still returns a float which is what the warnings are complaining about, you need to use int() to get rid of them.

You may want to use both, i.e. int(round()). When dealing
with graphics coordinates, that's usually the right thing
to do.

(I would still like to have a round-to-int function
conveniently available somewhere...)

--
Greg