SA-MP Forums Archive
About float functions - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: About float functions (/showthread.php?tid=84839)



About float functions - potato - 03.07.2009

Hi!
I started making a script and found that there are few functions that I haven't used before and ****** doesn't give a good answer about what they exactly do.
So here are them:
floatsub - devides 2 floats?
floatadd - sums 2 floats?
floatabs - absolute value? what the diference, isn't everything in GTA absolute?
floatmul - multiply?

And if my statement is true, then floatsub(30.0, -90.0); should be 120.0, is it?


Re: About float functions - Ignas1337 - 03.07.2009

umm, have you checked here ?


Re: About float functions - potato - 03.07.2009

Nop, because ****** didn't give this page...
But thanks.
And what about that absolute thing?
Is it meant like the actual value? Like floatabs(-400.0) will be 400, floatabs(400) will be 400?
That would be modulus, so aboslute is the same as modulus?
y=|x|


Re: About float functions - Ignas1337 - 03.07.2009

don't ask me, ask Kye ;]