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
  • 92,861
  • 21
  • 134
  • 171
coolguy
  • 7,866
  • 9
  • 45
  • 71