round a output number

lets say i have this:
document.getElementById('number').height = 3.2*4;

and the output is 12.8.

how do i round up the number to 13.0 on output?

Comments

  • : lets say i have this:
    : document.getElementById('number').height = 3.2*4;
    :
    : and the output is 12.8.
    :
    : how do i round up the number to 13.0 on output?
    :


    Math.round()

    I would recommend you read some books or online tutorials, such as http://www.w3schools.com/js/default.asp.

    Leo
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion