0

We have a number like 23456.888 and want to display it rounded and with a comma as 23,457. What we've tried:

23456.888.toFixed(0) // 23457
23456.888.toLocaleString('en-US') // 23,456.888
23456.888.toFixed(0).toLocaleString('en-US') // 23457
Canovice
  • 9,012
  • 22
  • 93
  • 211

0 Answers0