Quote:
I need it still to be a number
Why? You're immediately appending a string to it, so even if it was still a number, it would be converted to a string at that point.
If you want to round a number to an integer whilst keeping it as a number, use
Math.round
:
Math.round() - JavaScript | MDN[
^]