so what's mFloatLength(3.5, 0)?
Have you taken more than first grade math?
Was that really necessary?
mFloor(%n) rounds down to the next integer. (3.99 --> 3)mCeil(%n) rounds up to the next integer. (3.01 --> 4)mFloatLength(%n,0) would round to the nearest integer. (3.99 --> 4, 3.01 --> 3)
function mRound(%num){ return mFloor(%num + 0.5);}
I prefer making my own function for rounding to the nearest integer.Code: [Select]function mRound(%num){ return mFloor(%num + 0.5);}
That's a terrible rounding function, what would you even use that for?
I prefer making my own function for rounding to the nearest integer.
it'll function the same as mFloatLength.