jQuery 1.8.3, HTML, CSS, JavaScript
Javascript cannot accurately do arithmetic with floating point numbers. So do your math with integers first, then convert to decimal.
The size attribute should specify how many characters it shows. It doesn't do that. Maxlength works fine, it limits how many characters can be entered into the field.
jQuery 1.7.2, HTML, CSS, JavaScript
This works only because of the constructor parameters being used for methods
jQuery 1.5.2, HTML, CSS, JavaScript