Math operators and round number - 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: Math operators and round number (
/showthread.php?tid=203283)
Math operators and round number -
billiout - 26.12.2010
what operators does pawno support i mean the operator of power (^) does it support it? also how to perform square root on a number(i know i can power the number on 0.5) and how to round a number on 3 digits after dot. thanks
Re: Math operators and round number -
RyDeR` - 26.12.2010
'^' in pawn xor or something.
To square root you can use floatsqroot and to power floatpower.
Re: Math operators and round number -
billiout - 26.12.2010
thanks for the answer
do you know how to round a number?
Re: Math operators and round number -
TouR - 26.12.2010
What do you mean
Btw i am Greek Too
Re: Math operators and round number -
CrucixTM - 26.12.2010
Quote:
Originally Posted by billiout
thanks for the answer do you know how to round a number?
|
https://sampwiki.blast.hk/wiki/Floatround
Rounds a float to an integer.