MCPcopy Create free account
hub / github.com/HasmikSarg/CalcOldVersion / getFormattedNumber

Function getFormattedNumber

JS/script.js:23–28  ·  view source on GitHub ↗
(num)

Source from the content-addressed store, hash-verified

21
22// Formatting and reversing number functions
23function getFormattedNumber(num) {
24 if (num === "-") {
25 return "";
26 }
27 return Number(num).toLocaleString("en");
28}
29
30function reverseNumberFormat(num) {
31 return Number(num.replace(/,/g, ""));

Callers 1

printOutputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected