Skip to content

Commit

Permalink
fix CBA_fnc_formatNumber for small negative numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
commy2 committed Mar 14, 2020
1 parent b74baf1 commit 3ce962b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/strings/fnc_formatNumber.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ if (_separateThousands) then { // add localized thousands seperator "1,000"
};
};

// re-add negative sign if there is at least one decimal place != 0.
// Re-add negative sign if there is at least one decimal place != 0.
if (_isNegative && {!(toArray _return arrayIntersect toArray "123456789" isEqualTo [])}) then {
_return = "-" + _return;
};
Expand Down

0 comments on commit 3ce962b

Please sign in to comment.