def test_eng_string_mega(x): assert eng_string(x, prefix=True).endswith(' M')
def test_eng_string_zero(): assert eng_string(0) == "0"
def test_eng_string_kilo(x): assert eng_string(x, prefix=True).endswith(' k')
def test_eng_string_less_e3(x): assert eng_string(x, prefix=False).endswith('e3')
def test_eng_string_less_than_one_thousand(x): assert eng_string(x) == str(x)
def test_eng_string_non_negative_sign(x): assert not eng_string(x).startswith('-')
def present_value(args, nearest): return eng_string(nearest, prefix=args['--symbol'])