• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 239
  • Last Modified:

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
0
newbie27
Asked:
newbie27
  • 2
1 Solution
 
hieloCommented:
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

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now