jQuery limit to 2 decimal places
Posted
by Michael Pasqualone
on Stack Overflow
See other posts from Stack Overflow
or by Michael Pasqualone
Published on 2010-06-11T04:57:36Z
Indexed on
2010/06/11
5:02 UTC
Read the original article
Hit count: 232
jQuery
How do I limit the following jQuery return to 2 decimal places?
$("#diskamountUnit").val('$' + $("#disk").slider("value") * 1.60);
I figure I've got to throw toFixed(2) somewhere into there, but I can't seem to get the ordering right or something.
© Stack Overflow or respective owner