def number_to_string()

in understanding_rl_vision/rl_clarity/interface.py [0:0]


def number_to_string(x):
    s = str(x)
    if s.endswith(".0"):
        s = s[:-2]
    return "".join([c for c in s if c.isdigit() or c == "e"])