CVS_RSH not defined /usr/bin/cvs -d :pserver:address@hidden:/cvsroot/guile diff -r1.25 -u scheme-data.texi Index: scheme-data.texi =================================================================== RCS file: /cvsroot/guile/guile/guile-core/doc/ref/scheme-data.texi,v retrieving revision 1.25 diff -u -u -r1.25 scheme-data.texi --- scheme-data.texi 26 Apr 2003 15:30:59 -0000 1.25 +++ scheme-data.texi 1 May 2003 00:32:42 -0000 @@ -554,13 +554,14 @@ @end deffn @c begin (texi-doc-string "guile" "quotient") address@hidden {Scheme Procedure} quotient -Return the quotient of the numbers @var{x} and @var{y}. address@hidden deffn - @c begin (texi-doc-string "guile" "remainder") address@hidden {Scheme Procedure} remainder -Return the remainder of the numbers @var{x} and @var{y}. address@hidden {Scheme Procedure} quotient n d address@hidden {Scheme Procedure} remainder n d +Return the quotient or remainder from @var{n} divided by @var{d}. The +quotient is rounded towards zero, and the remainder will have the same +sign as @var{n}. In all cases quotient and remainder satisfy address@hidden@var{n} = @address@hidden + @var{r}}. + @lisp (remainder 13 4) @result{} 1 (remainder -13 4) @result{} -1 @@ -568,11 +569,15 @@ @end deffn @c begin (texi-doc-string "guile" "modulo") address@hidden {Scheme Procedure} modulo -Return the modulo of the numbers @var{x} and @var{y}. address@hidden {Scheme Procedure} modulo n d +Return the remainder from @var{n} divided by @var{d}, with the same +sign as @var{d}. + @lisp (modulo 13 4) @result{} 1 (modulo -13 4) @result{} 3 +(modulo 13 -4) @result{} -1 +(modulo -13 -4) @result{} -3 @end lisp @end deffn