Link to home
Start Free TrialLog in
Avatar of rajikrishna
rajikrishna

asked on

Rounding off to the next number

Hi,

I have a simple doubt

if i have a number like 5.5 or 5.8 it should off to 6
and if i have a number like 5.1 or 5.49 it should round off to 5 i dont want any decimal places like 5.00.

how do i do it in Javascript???
ASKER CERTIFIED SOLUTION
Avatar of ldbkutty
ldbkutty
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rajikrishna
rajikrishna

ASKER

Its so easy
Thankx