Hi,
a simple thing : i have a negative number and i would that he become positive. but a positive number must stay positive
-8 \> 8 7 \> 7 -3 \> 3
is there a library for do this ?
Hi,
a simple thing : i have a negative number and i would that he become positive. but a positive number must stay positive
-8 \> 8 7 \> 7 -3 \> 3
is there a library for do this ?
math.abs
thanks nick_sherman
have a nice day 
Questions like these put a smile on my face!
Not making fun of the OP: it just reminds of my own first steps in coding, and learning how some stuff can be done really easily, and how this forum is a nice and helpful place!
To espace3d: math is your friend!
Remember when you had to write this stuff yourself?
if x \< 0 then x = -1 \* x end
math.abs
thanks nick_sherman
have a nice day 
Questions like these put a smile on my face!
Not making fun of the OP: it just reminds of my own first steps in coding, and learning how some stuff can be done really easily, and how this forum is a nice and helpful place!
To espace3d: math is your friend!
Remember when you had to write this stuff yourself?
if x \< 0 then x = -1 \* x end