SketchyLISP Reference |
Copyright (C) 2006 Nils M Holm |
<<[nquotient] | [Index] | [null?]>> |
Conformance: SketchyLISP Core
Purpose: Compute the remainder of the division of two natural numbers.
Arguments:
A - natural number (dividend)
B - natural number (divisor)
Implementation:
(define (nremainder a b) (cadr (ndivide a b)))
Example:
(nremainder 11 4) => 3
See also:
digits,
ndivide,
nquotient,
n*,
n+,
n-,
remainder.
<<[nquotient] | [Index] | [null?]>> |