def METHOD_NAME(value):
    if value > 1:
        if np.abs(int(value) - value) < 0.1:
            out = "$10^{%.1i}$" % value
        else:
            out = "$10^{%.1f}$" % value
    else:
        value = np.exp(value - 0.01)
        if value > 0.1:
            out = f"{value:1.1f}"
        elif value > 0.01:
            out = f"{value:.2f}"
        else:
            out = f"{value:.2e}"
    return out