(value, style)
Convert value to Decimal to apply numeric formats.
    value - The value we wish to format.
    style - report_builder.Format object
Convert value to Decimal to apply numeric formats.
    value - The value we wish to format.
    style - report_builder.Format object
Convert value to Decimal to apply numeric formats . value - The value we wish to format . style - report_builder . Format object
def formatter(value, style):
    """ Convert value to Decimal to apply numeric formats.
    value - The value we wish to format.
    style - report_builder.Format object
    """
    try:
        value = Decimal(value)
    except Exception:
        pass

    try:
        return style.string.format(value)
    except ValueError:
        return value
def formatter ( value , style ) : try : value = Decimal ( value ) except Exception : pass try : return style . string . format ( value ) except ValueError : return value