While working on a project, I came across a JS-script created by a former employee that basically creates a report in the form of
Name : Value Name2 : Value2
You can use Math.round() for rounding numbers to the nearest integer.
Math.round(532.24) => 532
Also, you can use parseInt() and parseFloat() to cast a variable to a certain type, in this case integer and floating point.