diff --git a/docs/source/programming.rst b/docs/source/programming.rst index ce9713789..ca37b2a16 100644 --- a/docs/source/programming.rst +++ b/docs/source/programming.rst @@ -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