import math


def amplitude_to_db(amplitude: float, reference: float = 1e-6) -> float:
    """
    Convert amplitude from volts to decibel (dB).

    Args:
        amplitude: Amplitude in volts
        reference: Reference amplitude. Defaults to 1 µV for dB(AE)

    Returns:
        Amplitude in dB(ref)
    """
    return 20 * math.log10(amplitude / reference)