1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-10 14:00:21 +02:00

Fix minor errors in docs of division operators

* doc/ref/api-data.texi (Arithmetic): The R5RS `quotient', `remainder',
  and `modulo' operators are exact-integer-only operators.  `modulo' is
  equivalent to `floor-remainder', not `floor-quotient'.
This commit is contained in:
Mark H Weaver 2011-02-13 16:28:34 -05:00 committed by Andy Wingo
parent 79b3863d8c
commit a6b087be1b

View file

@ -1308,7 +1308,7 @@ both @var{q} and @var{r}, and is more efficient than computing each
separately. Note that @var{r}, if non-zero, will have the same sign
as @var{y}.
When @var{x} and @var{y} are integers, @code{floor-quotient} is
When @var{x} and @var{y} are exact integers, @code{floor-remainder} is
equivalent to the R5RS integer-only operator @code{modulo}.
@lisp
@ -1365,8 +1365,9 @@ both @var{q} and @var{r}, and is more efficient than computing each
separately. Note that @var{r}, if non-zero, will have the same sign
as @var{x}.
When @var{x} and @var{y} are integers, these operators are equivalent to
the R5RS integer-only operators @code{quotient} and @code{remainder}.
When @var{x} and @var{y} are exact integers, these operators are
equivalent to the R5RS integer-only operators @code{quotient} and
@code{remainder}.
@lisp
(truncate-quotient 123 10) @result{} 12