provide a predictable implementation of toFixed, so that model computations are accurate to the desired number of decimal places