1

Possible Duplicate:
Format numbers in javascript

I have number 2.3455555555555555 I want to get it only 2.34 by using jQuery. I do not know how to fix it.

Community
  • 1
  • 1
Sealongmaly
  • 51
  • 2
  • 5
  • 9

1 Answers1

5
(2.3455555555555555).toFixed(2);
elclanrs
  • 89,567
  • 21
  • 132
  • 165
coolguy
  • 7,728
  • 9
  • 43
  • 71