changed invalid call method to toPrecision