def atof(value):
    val = str(value)
    try:
        return float(val)
    except ValueError:
        try:
            return float(val.replace(',', '.'))
        except ValueError:
            pass

    if isinstance(value, unicode):
        value = value.encode("utf-8")
    return locale.atof(value)
Initialization
dataset/ETHPy150Open diefenbach/django-lfs/lfs/core/utils.py/atof--crossover with--dataset/ETHPy150Open Net-ng/kansha/kansha/card_addons/comment/comp.py/Commentlabel.__init__