pricing/babel_numbers.py
def get_decimal_precision(number):
    """Return maximum precision of a decimal instance's fractional part.
    Precision is extracted from the fractional part only.
    """
    # Copied from: https://github.com/mahmoud/boltons/pull/59
    assert isinstance(number, decimal.Decimal)
    decimal_tuple = number.normalize().as_tuple()
    if decimal_tuple.exponent >= 0:
        return 0
    return abs(decimal_tuple.exponent)
def get_decimal_precision(number):
    """Return maximum precision of a decimal instance's fractional part.
    Precision is extracted from the fractional part only.
    """
    # Copied from: https://github.com/mahmoud/boltons/pull/59
    assert isinstance(number, decimal.Decimal)
    decimal_tuple = number.normalize().as_tuple()
    if decimal_tuple.exponent >= 0:
        return 0
    return abs(decimal_tuple.exponent)
def get_decimal_precision ( number ) : # Copied from: https://github.com/mahmoud/boltons/pull/59 assert isinstance ( number , decimal . Decimal ) decimal_tuple = number . normalize ( ) . as_tuple ( ) if decimal_tuple . exponent >= 0 : return 0 return abs ( decimal_tuple . exponent )
Return maximum precision of a decimal instance's fractional part.
    Precision is extracted from the fractional part only.
Return maximum precision of a decimal instance s fractional part . Precision is extracted from the fractional part only .