How to identify the magnitude is pawno? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to identify the magnitude is pawno? (
/showthread.php?tid=388355)
How to identify the magnitude is pawno? -
Frapsy - 28.10.2012
In mathematics, denoted by |x|
How to write it in pawno
Re: How to identify the magnitude is pawno? -
Mauzen - 28.10.2012
floatabs for floats only (buggy for ints), or ((variablename < 0) ? (-1 * variablename) : (variablename)) for ints (this turns the sign if the variable is negative)