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

All Samples(11)  |  Call(10)  |  Derive(0)  |  Import(1)
Return the symbol used by the locale to separate decimal fractions.

>>> get_decimal_symbol('en_US')
u'.'

:param locale: the `Locale` object or locale identifier

        def get_decimal_symbol(locale=LC_NUMERIC):
    """Return the symbol used by the locale to separate decimal fractions.

    >>> get_decimal_symbol('en_US')
    u'.'

    :param locale: the `Locale` object or locale identifier
    """
    return Locale.parse(locale).number_symbols.get('decimal', u'.')
        


src/n/a/nagare-0.4.1/nagare/i18n.py   nagare(Download)
        u'.'
        """
        return numbers.get_decimal_symbol(self)
 
    def get_plus_sign_symbol(self):

src/k/a/KalaPy-0.4.2/kalapy/i18n/format.py   KalaPy(Download)
    if digits == 0:
        return num
    return num + numbers.get_decimal_symbol(locale) + decimals
 
 
    """
    locale = get_locale()
    sep = numbers.get_decimal_symbol(locale)
    num, decimals = string.rsplit(sep, 1)
    num = numbers.parse_number(num, locale=locale)

src/k/a/kalapy-HEAD/kalapy/i18n/format.py   kalapy(Download)
    if digits == 0:
        return num
    return num + numbers.get_decimal_symbol(locale) + decimals
 
 
    """
    locale = get_locale()
    sep = numbers.get_decimal_symbol(locale)
    num, decimals = string.rsplit(sep, 1)
    num = numbers.parse_number(num, locale=locale)

src/f/o/foofind-web-HEAD/foofind/templates/__init__.py   foofind-web(Download)
# -*- coding: utf-8 -*-
from flask import g, request, url_for
from flask.ext.babelex import gettext as _
from babel.numbers import get_decimal_symbol, get_group_symbol
from math import log, ceil
        decimal_sep, group_sep = format_cache[lang]
    else:
        decimal_sep, group_sep = format_cache[lang] = (get_decimal_symbol(lang), get_group_symbol(lang))
 
    try:

src/s/q/sqlkit-0.9.6/sqlkit/widgets/common/sqlwidget.py   sqlkit(Download)
        key = gtk.gdk.keyval_name (event.keyval)
 
        if key in ('KP_Decimal',) and numbers.get_decimal_symbol() == ",":
            event = gtk.gdk.Event(gtk.gdk.KEY_PRESS)
            event.keyval = gtk.keysyms.comma

src/f/j/fjord-HEAD/vendor/packages/Babel/tests/test_numbers.py   fjord(Download)
def test_get_decimal_symbol():
    assert numbers.get_decimal_symbol('en_US') == u'.'
 
 
def test_get_plus_sign_symbol():

src/z/e/ZenPacks.zenoss.OpenStack-HEAD/src/Babel-1.3/tests/test_numbers.py   ZenPacks.zenoss.OpenStack(Download)
def test_get_decimal_symbol():
    assert numbers.get_decimal_symbol('en_US') == u'.'
 
 
def test_get_plus_sign_symbol():

src/b/a/Babel-1.3/tests/test_numbers.py   Babel(Download)
def test_get_decimal_symbol():
    assert numbers.get_decimal_symbol('en_US') == u'.'
 
 
def test_get_plus_sign_symbol():