def float_is_zero(value, precision_digits=None, precision_rounding=None):
 epsilon = _float_check_precision(precision_digits=precision_digits, precision_rounding=precision_rounding)
 return (abs(float_round(value, precision_rounding=epsilon)) < epsilon)

def float_is_zero ( value , precision_digits = None , precision_rounding = None ) : epsilon = _float_check_precision ( precision_digits = precision_digits , precision_rounding = precision_rounding ) return ( abs ( float_round ( value , precision_rounding = epsilon ) ) < epsilon )
returns true if value is small enough to be treated as zero at the given precision .