Bug 913228 - Fix floating point math to not round to zero accidentally. r=autra