toPrecision fix