(d: Decimal)
return d.quantize(Decimal(1)) if d == d.to_integral() else d.normalize()
Returns ``d`` as its integer representation if it is an integer,
    otherwise strips trailing zeroes and normalizes decimal place.

    >>> Decimal('10.000').normalize()
    Decimal('1E+1')
    >>> remove_exponent(Decimal('10.000'))
    Decimal('10')
    >>> remove_exponent(Decimal('10.010'))
    Decimal('10.01')
Returns ``d`` as its integer representation if it is an integer,
    otherwise strips trailing zeroes and normalizes decimal place.
Returns d as its integer representation if it is an integer otherwise strips trailing zeroes and normalizes decimal place .
def remove_exponent(d: Decimal) -> Decimal:
    """
    Returns ``d`` as its integer representation if it is an integer,
    otherwise strips trailing zeroes and normalizes decimal place.

    >>> Decimal('10.000').normalize()
    Decimal('1E+1')
    >>> remove_exponent(Decimal('10.000'))
    Decimal('10')
    >>> remove_exponent(Decimal('10.010'))
    Decimal('10.01')

    """
    return d.quantize(Decimal(1)) if d == d.to_integral() else d.normalize()
def remove_exponent ( d : Decimal ) -> Decimal : return d . quantize ( Decimal ( 1 ) ) if d == d . to_integral ( ) else d . normalize ( )