Util.numer() - shysolocup/noscord.js GitHub Wiki

creates a formatted number
type: Function

arguments:

  • number Number
  • settings Object

settings:

  • currency Any
  • roundTo Number

util.numer(2500); // "2,500"

util.numer(2500, { roundTo: 1 }); // "2,500.0"
util.numer(2500, { roundTo: 2 }); // "2,500.00"

util.numer(2500, { currency: "$" }); // "$2,500"


⚠️ **GitHub.com Fallback** ⚠️