Floatpower vs float*float
#1

Is there a difference between using Floatpower vs multiplying the floats by eachother?

Example:
pawn Код:
new Float:X;
X = 5.3423;
X = floatround(floatpower(X, 2)); // This or
X = floatround((X * X)); // this
Are they exactly the same, is floatpower slower because it has to call a function or something? Any info would be appreciated, thanks.
Reply


Messages In This Thread
Floatpower vs float*float - by lavamike - 09.02.2013, 00:20
Respuesta: Floatpower vs float*float - by TheChaoz - 09.02.2013, 03:19
Re: Floatpower vs float*float - by Vince - 09.02.2013, 07:25
Re: Floatpower vs float*float - by lavamike - 10.02.2013, 18:00

Forum Jump:


Users browsing this thread: 1 Guest(s)