Floatsqroot / Sqroot / Absolute - 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: Floatsqroot / Sqroot / Absolute (
/showthread.php?tid=565759)
Floatsqroot / Sqroot / Absolute -
Sascha - 01.03.2015
Hi,
there might already been some answer to this, although I did not find it by searching...
How could I get the absolute value of an integer (-92 ==> 92)
floatsqroot(value*value) and floatabs(value) will return a tag mismatch warning..
I have solved this by multiplying with -1, although I'm interested whether there is an alternative way for it