Make a value pozitive
#1

Hello!
I have a problem with my script and I think you guys can help ( I searched and tried anything that got in my mind)
Is there any way to make a value of a variable pozitive/negative
Like i have the variable 'nuts' with value 34 How can i make it be 34 (Pozitive) ?
Reply
#2

Код:
new nuts = 5;
nuts = -nuts; //nuts now equals -5
nuts = -nuts; //nuts now equals 5 again
Reply
#3

Hah - - i didn't thought of that, thanks
Reply
#4

No problem ^__^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)