Node:Integer Operations, Next:Comparison, Previous:Number Syntax, Up:Numbers
odd? n | Scheme Procedure |
scm_odd_p (n) | C Function |
Return #t if n is an odd number, #f
otherwise.
|
even? n | Scheme Procedure |
scm_even_p (n) | C Function |
Return #t if n is an even number, #f
otherwise.
|
quotient | Scheme Procedure |
Return the quotient of the numbers x and y. |
remainder | Scheme Procedure |
Return the remainder of the numbers x and y.
(remainder 13 4) => 1 (remainder -13 4) => -1 |
modulo | Scheme Procedure |
Return the modulo of the numbers x and y.
(modulo 13 4) => 1 (modulo -13 4) => 3 |
gcd | Scheme Procedure |
Return the greatest common divisor of all arguments. If called without arguments, 0 is returned. |
lcm | Scheme Procedure |
Return the least common multiple of the arguments. If called without arguments, 1 is returned. |