Farai
Am 27.12.2006 um 21:50 schrieb Caleb Mahase:
Farai Aschwanden wrote:
Hello
Erm, not a Pygame 1.8 question but just cant find the the needed
function: I would like to make a negative number to a positive
number, like -5 -> 5
Quite easy, just cant find the Python function (if there is one).
Sure I could multiply the negative value by -1 but I would prefer
using the convention function. Is there one and what is it called?
Thanks in advance
Farai
Just get the absolute value. I think its fabs() or abs().
- Cal