mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Deprecate common function numberToDigitsString (#6007)
* Deprecate common function numberToDigitsString
This commit is contained in:
@ -16,20 +16,6 @@
|
||||
*/
|
||||
#include "script_component.hpp"
|
||||
|
||||
params ["_number", "_minLength"];
|
||||
ACE_DEPRECATED(QFUNC(numberToDigitsString),"3.14.0","CBA_fnc_formatNumber");
|
||||
|
||||
_number = _number min 999999;
|
||||
_number = str _number;
|
||||
|
||||
private _length = count _number;
|
||||
|
||||
if (isNil "_minLength") then {_minLength = _length};
|
||||
|
||||
_minLength = _minLength min 6;
|
||||
|
||||
while {_length < _minLength} do {
|
||||
_number = "0" + _number;
|
||||
_length = _length + 1;
|
||||
};
|
||||
|
||||
_number
|
||||
_this call CBA_fnc_formatNumber
|
||||
|
Reference in New Issue
Block a user