def _format_decimal(num, format=None):
 lang = translation.get_language()
 if (not localedata.exists(lang)):
  lang = settings.LANGUAGE_CODE
 locale = Locale(translation.to_locale(lang))
 return Format(locale).decimal(num, format)

def _format_decimal ( num , format = None ) : lang = translation . get_language ( ) if ( not localedata . exists ( lang ) ) : lang = settings . LANGUAGE_CODE locale = Locale ( translation . to_locale ( lang ) ) return Format ( locale ) . decimal ( num , format )
returns the string of a number formatted for the current language .