how to format fixed digit number

Hello Experts,
I need a javascript function that will return a small value with a fixed number of digits to the right of the decimal.
133.5999 to 133.59
please advice
thanks
sam
LVL 8
newbie27Asked:
Who is Participating?
 
hieloConnect With a Mentor Commented:
var x = 133.5999

 alert( x.toFixed(2) );
0
 
newbie27Author Commented:
thanks
0
 
newbie27Author Commented:
hope you been doing well hielo, this has been a long since i have seen you here ....

please can you spend some time this evening to help me in few of the jQuery issues?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.