1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #31487 -- Added precision argument to Round().

This commit is contained in:
Nick Pope
2021-03-24 22:29:33 +00:00
committed by Mariusz Felisiak
parent 61d5e57353
commit 2f13c476ab
7 changed files with 115 additions and 10 deletions

View File

@@ -222,6 +222,10 @@ Models
whether the queryset contains the given object. This tries to perform the
query in the simplest and fastest way possible.
* The new ``precision`` argument of the
:class:`Round() <django.db.models.functions.Round>` database function allows
specifying the number of decimal places after rounding.
Requests and Responses
~~~~~~~~~~~~~~~~~~~~~~