Formatting doubles to either 0 or 2 decimal places