@jinja2.contextfunction
@library.global_function
def number(context, n):
    if n is None:
        return ''
    return format_decimal(n, locale=_babel_locale(_contextual_locale(context)))
Test the ToOneOf converter.
dataset/ETHPy150Open mozilla/kitsune/kitsune/sumo/templatetags/jinja_helpers.py/number--crossover with--dataset/ETHPy150Open nasa/mplStyle/mplStyle/types/convert/test/test_toOneOf.py/TesttoOneOf.testToOneOf