|
|||||
|
|||||

|
Function
|
Description
|
|
Returns an absolute value
|
|
|
Returns an inverted value
|
|
|
Raise and value to the specified power
|
|
|
Calculates an integer square root
|
|
inv returns the inverted value of an expression or number.
This means a positive value will be turned in to a negative value and vice versa, which
is the same as multiplying the value by -1. For example;
One of
the popular uses for this command is to invert the right sticks Y axis. For
example, if you prefere to play with an inverted aim but come across a game which
doesn't support it, with one line of code you can have the CronusMAX PLUS invert the
axis for you. Like so;
Syntaxinv ( <expression> );
Parameters<expression> : any expression which has a value
ReturnsThe inverted value of the expression
|
||
|
pow raises the given value to the power specified. What
this means is a value will be multiple by itself X amount of times. For example;
This
function must be used with caution as there is a risk of an integer overflow when using
it. This would occur when the function attempts to return a value greater than
32767 which is the maximum value for a signed 16 bit
integer.
Syntaxpow ( <expression1> , <expression1> );
Parameters
ReturnsThe inverted value of the expression
|
|||||
|
isqrt returns the square root of a given value. The square
root of a value is the value which when multiplied by itself equals the given value.
For example, the square root of 25 is 5 (5 * 5 = 25). The return value is an integer which means any fractions
will be dropped. As shown below;
Syntaxisqrt ( <expression> );
Parameters<expression> : any expression which has a value
ReturnsThe square root of the given expression
|
|