MCPcopy Create free account
hub / github.com/AyushSaini00/60minuteJavaScript / formatMoney

Function formatMoney

Tip-Calculator/app.js:35–39  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

33//FORMATTING MONEY
34
35function formatMoney(value){
36 value = Math.ceil(value * 100) / 100;
37 value = value.toFixed(2);
38 return `₹${value}`;
39}
40//FORMATTING SPLIT
41
42function formatSplit(value){

Callers 1

updateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected