@jinja2.contextfunction
@library.global_function
def number(context, n):
 if (n is None):
  return ''
 return format_decimal(n, locale=_babel_locale(_contextual_locale(context)))

@ jinja2 . contextfunction @ library . global_function def number ( context , n ) : if ( n is None ) : return '' return format_decimal ( n , locale = _babel_locale ( _contextual_locale ( context ) ) )
return the localized representation of an integer or decimal .