I would like to format my numbers to always display 2 decimal places, rounding where applicable.
Examples:
number display ------ ------- 1
(num + "").replace(/^([0-9]*)(\.[0-9]{1,2})?.*$/,"$1$2")