Rounding decimals and add a thousands comma separator.

i want 3447.6 to display as 3,448

Thank you for the help in advance,

Math.round(3447.6) --> 3448

And if you want to also comma-format the rounded number:

Math.round(3447.6).toLocaleString(); // 3,448

Thank you so much it worked like a charm :slight_smile: