Searched refs:format_scientific (Results 1 - 2 of 2) sorted by relevance
/external/chromium-trace/catapult/third_party/webapp2/webapp2_extras/ |
H A D | i18n.py | 559 def format_scientific(self, number, format=None): member in class:I18n 563 >>> format_scientific(10000, locale='en_US') 568 >>> format_scientific(1234567, u'##0E00', locale='en_US') 578 return numbers.format_scientific(number, format=format, 773 def format_scientific(number, format=None): function 774 """See :meth:`I18n.format_scientific`.""" 775 return get_i18n().format_scientific(number, format)
|
/external/chromium-trace/catapult/third_party/webapp2/tests/ |
H A D | extras_i18n_test.py | 319 self.assertEqual(i18n.format_scientific(10000), u'1E4') 320 self.assertEqual(i18n.format_scientific(1234567, u'##0E00'), u'1.23E06')
|
Completed in 27 milliseconds