{"name":"BIS_fnc_roundNum","title":"BIS fnc roundNum","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_roundNum","revid":379279,"updated":"2026-10-30T23:45:23Z","groups":["Math"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","description":"Round a number to the provided factor.","syntaxes":[{"syntax":"[number, factor, secondary factor] call BIS_fnc_roundNum","params":[{"name":"number","type":"Number","description":"number that should be rounded.","type_expr":"Number"},{"name":"factor","type":"Number","description":"factor","type_expr":"Number"},{"name":"secondary factor","type":"Number","optional":true,"description":"Secondary factor, used when number / primary factor is smaller than 10 (scalar).","type_expr":"Number","text":"secondary factor: Number - (Optional) Secondary factor, used when number / primary factor is smaller than 10 (scalar)."}],"returns":{"type":"Number","type_expr":"Number","description":"rounded number"}}],"examples":[{"code":["[10.254,2,3] call BIS_fnc_roundNum;//Returns 9"]},{"code":["[10.254,1,3] call BIS_fnc_roundNum;//Returns 10"]}],"see_also":["BIS_fnc_randomInt","BIS_fnc_geometricMean","BIS_fnc_arithmeticMean","BIS_fnc_nearestNum","BIS_fnc_sortNum"]}