09.02.2013, 00:20
Is there a difference between using Floatpower vs multiplying the floats by eachother?
Example:
Are they exactly the same, is floatpower slower because it has to call a function or something? Any info would be appreciated, thanks.
Example:
pawn Код:
new Float:X;
X = 5.3423;
X = floatround(floatpower(X, 2)); // This or
X = floatround((X * X)); // this