fix: tweak divmod() doc (#131)

* fix: adjust naming on divmod parameters to match standard mathematical terminology; clarify description

* fix: wording

* fix: wording
This commit is contained in:
markjreed 2024-03-26 17:00:55 -04:00 committed by GitHub
parent 66e7c51064
commit 647af34f5b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -828,10 +828,11 @@ sqrt (w)
Supports unsigned integer (result is ubyte) and floating point numbers.
To do the reverse - squaring a number - just write ``x*x``.
divmod (number, divident, division, remainder)
Performs division and remainder calculation in a single call. This is faster than using separate '/' and '%' calculations.
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 ubyte variables to receive the division and remainder results, respectively.
The last two arguments must be ubyte variables to receive the quotient and remainder results, respectively.
Array operations