def format_value(value):
    value = decimal.Decimal(str(value))
    if int(value) == value:
        return int(value)
    return round(value, 1)
Returns the given value rounded to one decimal place if it is a
dataset/ETHPy150Open CiscoSystems/avos/horizon/utils/functions.py/format_value