{"name":"BIS_fnc_numberText","operator":null,"title":"BIS fnc numberText","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_numberText","revid":336883,"updated":"2023-01-04T16:43:51Z","groups":["Math","Strings"],"status":"ok","replaced_by":[],"games":[{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Convert a number into string (avoiding scientific notation).","syntaxes":[{"syntax":"[number, modulo] call BIS_fnc_numberText","since":null,"effect":null,"exec":null,"params":[{"name":"number","type":"Number","optional":false,"default":null,"description":null,"types":["Number"],"since":null,"text":"number: Number"},{"name":"modulo","type":"Number","optional":true,"default":"3","description":null,"types":["Number"],"since":null,"text":"modulo: Number - (Optional, default 3)"}],"returns":{"type":"String","types":["String"],"description":null,"text":"String"}}],"examples":[{"text":"```sqf\n[4096] call BIS_fnc_numberText; // \"4 096\"\n```","code":["[4096] call BIS_fnc_numberText; // \"4 096\""]},{"text":"```sqf\n[512, 1] call BIS_fnc_numberText; // \"5 1 2\"\n```","code":["[512, 1] call BIS_fnc_numberText; // \"5 1 2\""]},{"text":"```sqf\n[999999999999] call BIS_fnc_numberText; // \"909 999 995 904\"\n```","code":["[999999999999] call BIS_fnc_numberText; // \"909 999 995 904\""]},{"text":"```sqf\n[1234.5678] call BIS_fnc_numberText; // \"1 234\"\n```","code":["[1234.5678] call BIS_fnc_numberText; // \"1 234\""]}],"multiplayer":null,"problems":"It is very imprecise with larger numbers. See #Example 3. It also does not work with floating point numbers.","aliases":[],"see_also":["BIS_fnc_numberDigits","BIS_fnc_cutDecimals"],"notes":[],"categories":["Arma 3: Functions","Function Group: Math","Function Group: Strings","Functions","Introduced with Take On Helicopters version 1.00","Take On Helicopters: Functions","Take On Helicopters: New Functions"],"docblock":null,"filled_from_docblock":[]}