Macro that will return the absolute value
ABS( number )
Returns the absolute value of the given number.
Works with both float and integer parameters.
number | input value |
Returns the absolute value of number
.
new Float:x; new i; x = ABS( 123.45 ); // 123.45 i = ABS( 456 ); // 456 x = ABS( -123.45 ); // 123.45 i = ABS( -456 ); // 456