Hi all first time posting in a while sry if i mess something up. Anyway I am using 2d arrays to make a game with pygame and i alter coordinates on this array by smaller than 1 increments. Then i need to reference the coordinates in an If statement. However by this time in the program the coordinates have been altered to non integer numbers. My question is how can i turn these floating point numbers into whole integers.
code = [python]
PS: I have already tried the round function. This does give integers but it adds a .0 to the end so like the floating point number 89.9 turns into 90.0 and i cant use it seeing as how it has a decimal place after the integer.
thanx in advance
alex