decimal number


How can I set a decimal number to a integer number?

Someting like this:

test = int( str( self.player.getX ))

What exactly do you mean?
I assume you mean by “decimal” a “float”?
If you want to convert something (either an int or str or so) to a float, you can just do float(something).

desimal number is a number that uses 10 digits
and integer number is a number representing only full quantities.

desimal numbers, 1 , 23.4 234E43
integer numbers 1,2,3 34234 34545

any ways it think what you want is:

test = self.player.getX()

NOTE: i don’t think you are talking about binary packed decimal which python or C++ do not support.