Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(104)  |  Call(73)  |  Derive(0)  |  Import(31)

        def format_number(number, locale=LC_NUMERIC):
    u"""Return the given number formatted for a specific locale.

    >>> format_number(1099, locale='en_US')
    u'1,099'
    >>> format_number(1099, locale='de_DE')
    u'1.099'


    :param number: the number to format
    :param locale: the `Locale` object or locale identifier
    """
    # Do we really need this one?
    return format_decimal(number, locale=locale)
        


src/w/e/webapp2_example-HEAD/lib/webapp2_extras/i18n.py   webapp2_example(Download)
            The formatted number.
        """
        return numbers.format_number(number, locale=self.locale)
 
    def format_decimal(self, number, format=None):

src/f/j/fjord-HEAD/vendor/packages/Babel/babel/support.py   fjord(Download)
from babel.dates import format_date, format_datetime, format_time, \
     format_timedelta
from babel.numbers import format_number, format_decimal, format_currency, \
     format_percent, format_scientific
from babel._compat import PY2, text_type, text_to_native
        u'1,099'
        """
        return format_number(number, locale=self.locale)
 
    def decimal(self, number, format=None):

src/z/e/ZenPacks.zenoss.OpenStack-HEAD/src/Babel-1.3/babel/support.py   ZenPacks.zenoss.OpenStack(Download)
from babel.dates import format_date, format_datetime, format_time, \
     format_timedelta
from babel.numbers import format_number, format_decimal, format_currency, \
     format_percent, format_scientific
from babel._compat import PY2, text_type, text_to_native
        u'1,099'
        """
        return format_number(number, locale=self.locale)
 
    def decimal(self, number, format=None):

src/h/u/hue-HEAD/desktop/core/ext-py/Babel-0.9.6/babel/support.py   hue(Download)
from babel.core import Locale
from babel.dates import format_date, format_datetime, format_time, LC_TIME
from babel.numbers import format_number, format_decimal, format_currency, \
                          format_percent, format_scientific, LC_NUMERIC
from babel.util import set, UTC
        :see: `babel.numbers.format_number`
        """
        return format_number(number, locale=self.locale)
 
    def decimal(self, number, format=None):

src/b/a/Babel-1.3/babel/support.py   Babel(Download)
from babel.dates import format_date, format_datetime, format_time, \
     format_timedelta
from babel.numbers import format_number, format_decimal, format_currency, \
     format_percent, format_scientific
from babel._compat import PY2, text_type, text_to_native
        u'1,099'
        """
        return format_number(number, locale=self.locale)
 
    def decimal(self, number, format=None):

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/Babel-0.9.6/babel/support.py   hortonworks-sandbox(Download)
from babel.core import Locale
from babel.dates import format_date, format_datetime, format_time, LC_TIME
from babel.numbers import format_number, format_decimal, format_currency, \
                          format_percent, format_scientific, LC_NUMERIC
from babel.util import set, UTC
        :see: `babel.numbers.format_number`
        """
        return format_number(number, locale=self.locale)
 
    def decimal(self, number, format=None):

src/k/i/kitsune-HEAD/vendor/packages/Babel/babel/support.py   kitsune(Download)
from babel.core import Locale
from babel.dates import format_date, format_datetime, format_time, LC_TIME
from babel.numbers import format_number, format_decimal, format_currency, \
                          format_percent, format_scientific, LC_NUMERIC
from babel.util import set, UTC
        :see: `babel.numbers.format_number`
        """
        return format_number(number, locale=self.locale)
 
    def decimal(self, number, format=None):

src/s/o/socorro-HEAD/webapp-django/vendor/lib/python/babel/support.py   socorro(Download)
from babel.core import Locale
from babel.dates import format_date, format_datetime, format_time, LC_TIME
from babel.numbers import format_number, format_decimal, format_currency, \
                          format_percent, format_scientific, LC_NUMERIC
from babel.util import UTC
        :see: `babel.numbers.format_number`
        """
        return format_number(number, locale=self.locale)
 
    def decimal(self, number, format=None):

src/w/e/webapp-improved-HEAD/lib/babel/babel/support.py   webapp-improved(Download)
from babel.dates import format_date, format_datetime, format_time, \
                        format_timedelta
from babel.numbers import format_number, format_decimal, format_currency, \
                          format_percent, format_scientific
from babel.util import UTC
        :see: `babel.numbers.format_number`
        """
        return format_number(number, locale=self.locale)
 
    def decimal(self, number, format=None):

src/g/l/glow-HEAD/vendor/lib/python/babel/support.py   glow(Download)
from babel.core import Locale
from babel.dates import format_date, format_datetime, format_time, LC_TIME
from babel.numbers import format_number, format_decimal, format_currency, \
                          format_percent, format_scientific, LC_NUMERIC
from babel.util import UTC
        :see: `babel.numbers.format_number`
        """
        return format_number(number, locale=self.locale)
 
    def decimal(self, number, format=None):

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8  Next