fix divmod doc

This commit is contained in:
Irmen de Jong
2026-02-23 22:01:59 +01:00
parent bdbdf6e5cd
commit a3cbf4c3db
+4 -5
View File
@@ -63,11 +63,10 @@ Math
Returns the value restricted to the given minimum and maximum.
Supported for integer types only, for floats use ``floats.clampf()`` instead.
:index:`divmod` (dividend, divisor, quotient, remainder)
Performs division only once and returns both quotient and remainder in a single call, where using '/' and '%' separately
would perform the division operation twice.
All values are ubytes or all are uwords.
The last two arguments must be variables to receive the quotient and remainder results, respectively.
:index:`divmod` (dividend, divisor)
Returns quotient and remainder of the division as two ubyte or uword values.
Performs the division only once. Using '/' and '%' separately
would perform the division twice, so using divmod is much more efficient for this.
:index:`gcd` (a, b)
Returns the GCD (greatest common divisor) of uwords a and b