(self, value)
| 476 | return value.quantize(decimal.Decimal(), rounding=self.rounding) |
| 477 | |
| 478 | def to_mongo(self, value): |
| 479 | if self.force_string: |
| 480 | return str(self.to_python(value)) |
| 481 | return float(self.to_python(value)) |
| 482 | |
| 483 | def validate(self, value): |
| 484 | if not isinstance(value, decimal.Decimal): |
no test coverage detected