Skip to content

Commit

Permalink
Merge pull request #737 from gentooboontoo/patch-1
Browse files Browse the repository at this point in the history
Improve documentation on quantization of `DecimalField`
  • Loading branch information
azmeuk authored Jan 13, 2023
2 parents 22e766c + 15f6896 commit 96021e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wtforms/fields/numeric.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ class DecimalField(LocaleAwareNumberField):
:param places:
How many decimal places to quantize the value to for display on form.
If None, does not quantize value.
If unset, use 2 decimal places.
If explicitely set to `None`, does not quantize value.
:param rounding:
How to round the value during quantize, for example
`decimal.ROUND_UP`. If unset, uses the rounding value from the
Expand Down

0 comments on commit 96021e2

Please sign in to comment.