Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

angular formatting numbers with -commas

function printNo() {
  document.getElementById('text').innerHTML =
  Number(1234355).toLocaleString('en-GB');
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #angular #formatting #numbers
ADD COMMENT
Topic
Name
4+8 =