Clarify the documentation about digits

This commit is contained in:
Nicolas Évrard committed 2025-10-09 12:36:54 +02:00
1 parent ecfad8ea81
commit 6daccef092
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -424,9 +424,9 @@ Float
A tuple of two :py:class:`integers <int>`.
The first integer defines the total of numbers in the integer part.
The first integer defines the number of figures in the integer part.
The second integer defines the total of numbers in the decimal part.
The second integer defines the number of figures in the decimal part.
Integers can be replaced by a :class:`~trytond.pyson.PYSON` statement.
If digits is ``None`` or any values of the tuple is ``None``, no validation
+2 -2
View File
@@ -36,8 +36,8 @@ class Float(Field):
on_change=None, on_change_with=None, depends=None,
context=None, loading='eager'):
'''
:param digits: a list of two integers defining the total
of digits and the number of decimals of the float.
:param digits: a tuple of two integers defining the number of figures
of the integer and decimal part.
'''
super().__init__(string=string, help=help,
required=required, readonly=readonly, domain=domain, states=states,