might make sense to call precision "maxDecimals" and make a var called "minDecimals" to make the math clearer