some useful operations on numbers in javascript: currency, percent, and float/integer conversions