Fix bug in toFixed, toPrecision and toExponential.