This site is mobile accessible. Press the "Tap Here" button to use a smaller font-size.

Smartphone icons created by Freepik - Flaticon

JS Math.round()

Math.round(x) returns the value of x rounded to its nearest integer:

document.getElementById("demo").innerHTML = Math.round(4.5);