def clean_up_value(value, deci_place=4, sig_fig=2, only_big=False):
    """
    Round the given value to the given decimal place (`deci_place`).
    If the absolute value of the given value is too big or too small, return the value in
    scientific notation with the given significant figure (`sig_fig`).
    """
    if value is None:
        return value
    if only_big is True:
        if abs(value) < 1000:
            return "{:.{}f}".format(value, deci_place)
        else:
            return "{:.{}e}".format(value, sig_fig)
    else:
        if 1e-1 < abs(value) < 1000:
            return "{:.{}f}".format(value, deci_place)
        else:
            return "{:.{}e}".format(value, sig_fig)