Home
last modified time | relevance | path

Searched refs:format_percent (Results 1 – 3 of 3) sorted by relevance

/external/chromium-trace/catapult/third_party/webapp2/docs/api/webapp2_extras/
Di18n.rst32 format_currency, format_percent, format_scientific, parse_date,
52 .. autofunction:: format_percent
/external/chromium-trace/catapult/third_party/webapp2/webapp2_extras/
Di18n.py534 def format_percent(self, number, format=None): member in I18n
556 return numbers.format_percent(number, format=format,
768 def format_percent(number, format=None): function
770 return get_i18n().format_percent(number, format)
/external/chromium-trace/catapult/third_party/webapp2/tests/
Dextras_i18n_test.py310 self.assertEqual(i18n.format_percent(0.34), u'34%')
311 self.assertEqual(i18n.format_percent(25.1234), u'2,512%')
312 self.assertEqual(i18n.format_percent(25.1234, u'#,##0\u2030'), u'25,123\u2030')
315 self.assertEqual(i18n.format_percent(25.1234), u'2\xa0512\xa0%')