UDF MathRoundInteger

MathRoundInteger.
function MathRoundInteger takes integer i_number, integer i_round returns integer
 * set i_number = i_number - ModuloInteger( i_number, i_round )
 * return i_number

endfunction

i_number - Number to round

i_round - Number to round by

Usage:

//The following will display a plain white message containing 120 to all players

call DisplayTextToForce( GetPlayersAll, I2S( MathRoundInteger( 128, 10 ) ) )

Drasnian 21:12, 2 July 2008 (UTC)