

def format(self, value):
    dvalue = MyDecimal(value)
    if ((not dvalue.is_normal()) and (dvalue != ZERO)):
        raise MarshallingException('Invalid Fixed precision number.')
    return six.text_type(dvalue.quantize(self.precision, rounding=ROUND_HALF_EVEN))

dataset/ETHPy150Open flask-restful/flask-restful/flask_restful/fields.py Fixed.format/original