Author Topic: mInt - mAbs (Locked)  (Read 774 times)

I have added this code, not sure if it would be useful, but I hope so.

Code: [Select]
function mInt(%number)
{
if(%number > 0)
return %number;
%number = 0 + %number*-1;
return %number;
}

Example:

$pie = -323;
echo(mInt($pie));
returns 323

Locked, it is the same as mAbs.
« Last Edit: September 29, 2013, 02:40:55 PM by Advanced Bot »


Why not just use mAbs?
What..I looked at the Torque references, how did I not see this..