Improved formulas to allow a broader range of zero values.