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???
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thankx