'Format() will return the language-specific output for float values'

@api.multi
def format(self, percent, value, grouping=False, monetary=False):

    self.ensure_one()
    if (percent[0] != '%'):
        raise ValueError(_('format()    must    be    given    exactly    one    %char    format    specifier'))
    formatted = (percent % value)
    if grouping:
        (lang_grouping, thousands_sep, decimal_point) = self._data_get(monetary)
        eval_lang_grouping = safe_eval(lang_grouping)
        if (percent[(-1)] in 'eEfFgG'):
            parts = formatted.split('.')
            parts[0] = intersperse(parts[0], eval_lang_grouping, thousands_sep)[0]
            formatted = decimal_point.join(parts)
        elif (percent[(-1)] in 'diu'):
            formatted = intersperse(formatted, eval_lang_grouping, thousands_sep)[0]
    return formatted
