fix bug 814608 - Remove unwanted trailing zeros

https://bugzilla.mozilla.org/show_bug.cgi?id=814608

Prevents calculated numbers from looking like "12.100".  I didn't change the formatNumber method to do the string and zero removal because we may want to get that raw number in another operation down the line.

Let me know if any updates are desired.