Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Javascript number format, currency format

const yourNumber = -100
const nf = new Intl.NumberFormat('en-GB', { style: 'currency', currency: 'GBP' })
console.log(nf.format(yourNumber))
 Run code snippet
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Javascript #number #currency #format
ADD COMMENT
Topic
Name
4+6 =