Oct
19
2011
19
2011
MooTools Integers and Floats when used in math and currency
We have all been there before, your creating a form and asking for a dollar amount, or some number with decimal points lets say amount of fuel purchased. Typically there is plenty of logic that needs to go into validating the user input, did they use a dollar sign? Did they use the correct amount of decimal points? Well MooTools and JavaScript to the rescue! The MooTools Example Usage: *Tested with mooTools 1.3 and 1.4