Author Topic: Rounding function  (Read 513 times)

Apparently the default rounding function is screwy, so heres one jook made.

Quote
function round2(%data)
{
   %data = strReplace(%data, strChr(%data, "."), "");
   
   if(%data < 1)
   {
      %data = 0;
   }
   
   return %data;
}


It's exactly like mFloor...
This isn't rounding at all.