mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-10 22:24:33 +00:00
Fixed spacing to fit GG standards.
Fixed tabs to 3 spaces.
This commit is contained in:
parent
7ef3a64957
commit
02f859c150
3 changed files with 274 additions and 274 deletions
|
|
@ -96,16 +96,16 @@ DefineConsoleFunction( mFloor, S32, ( F32 v ),,
|
|||
|
||||
|
||||
DefineConsoleFunction( mRound, F32, ( F32 v, S32 n ), (0),
|
||||
"Round v to the nth decimal place or the nearest whole number by default."
|
||||
"@param v Value to round\n"
|
||||
"@param n Number of decimal places to round to, 0 by default\n"
|
||||
"@return The rounded value as a S32."
|
||||
"@ingroup Math" )
|
||||
"Round v to the nth decimal place or the nearest whole number by default."
|
||||
"@param v Value to round\n"
|
||||
"@param n Number of decimal places to round to, 0 by default\n"
|
||||
"@return The rounded value as a S32."
|
||||
"@ingroup Math" )
|
||||
{
|
||||
if(n <= 0)
|
||||
return mRound(v);
|
||||
else
|
||||
return mRound(v, n);
|
||||
if(n <= 0)
|
||||
return mRound(v);
|
||||
else
|
||||
return mRound(v, n);
|
||||
}
|
||||
|
||||
DefineConsoleFunction( mCeil, S32, ( F32 v ),,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue