]> code.delx.au - gnu-emacs/blobdiff - doc/lispref/numbers.texi
merge trunk
[gnu-emacs] / doc / lispref / numbers.texi
index a086f2b3af151ca48b9dc5f4028a63f2d6d7caf4..2e8fefed1c5e16278b5ce6519411ee4b44f3244c 100644 (file)
@@ -1,7 +1,7 @@
 @c -*-texinfo-*-
 @c This is part of the GNU Emacs Lisp Reference Manual.
-@c Copyright (C) 1990-1995, 1998-1999, 2001-2012
-@c   Free Software Foundation, Inc.
+@c Copyright (C) 1990-1995, 1998-1999, 2001-2014 Free Software
+@c Foundation, Inc.
 @c See the file elisp.texi for copying conditions.
 @node Numbers
 @chapter Numbers
@@ -43,7 +43,7 @@ minimum range is @minus{}536870912 to 536870911 (30 bits; i.e.,
 @end tex
 to
 @ifnottex
-2**29 - 1),
+2**29 @minus{} 1),
 @end ifnottex
 @tex
 @math{2^{29}-1}),
@@ -193,7 +193,7 @@ distinguishable in the @acronym{IEEE} floating point standard.
 infinity and negative infinity as floating point values.  It also
 provides for a class of values called NaN or ``not-a-number'';
 numerical functions return such values in cases where there is no
-correct answer.  For example, @code{(/ 0.0 0.0)} returns a NaN.  (NaN
+correct answer.  For example, @code{(/ 0.0 0.0)} returns a NaN@.  (NaN
 values can also carry a sign, but for practical purposes there's no
 significant difference between different NaN values in Emacs Lisp.)
 
@@ -354,9 +354,9 @@ can have just one integer object for any given value because it has a
 limited range of integer values.
 @end quotation
 
-@defun = number-or-marker1 number-or-marker2
-This function tests whether its arguments are numerically equal, and
-returns @code{t} if so, @code{nil} otherwise.
+@defun = number-or-marker &rest number-or-markers
+This function tests whether all its arguments are numerically equal,
+and returns @code{t} if so, @code{nil} otherwise.
 @end defun
 
 @defun eql value1 value2
@@ -371,26 +371,27 @@ This function tests whether its arguments are numerically equal, and
 returns @code{t} if they are not, and @code{nil} if they are.
 @end defun
 
-@defun <  number-or-marker1 number-or-marker2
-This function tests whether its first argument is strictly less than
-its second argument.  It returns @code{t} if so, @code{nil} otherwise.
+@defun <  number-or-marker &rest number-or-markers
+This function tests whether every argument is strictly less than the
+respective next argument.  It returns @code{t} if so, @code{nil}
+otherwise.
 @end defun
 
-@defun <=  number-or-marker1 number-or-marker2
-This function tests whether its first argument is less than or equal
-to its second argument.  It returns @code{t} if so, @code{nil}
+@defun <= number-or-marker &rest number-or-markers
+This function tests whether every argument is less than or equal to
+the respective next argument.  It returns @code{t} if so, @code{nil}
 otherwise.
 @end defun
 
-@defun >  number-or-marker1 number-or-marker2
-This function tests whether its first argument is strictly greater
-than its second argument.  It returns @code{t} if so, @code{nil}
+@defun > number-or-marker &rest number-or-markers
+This function tests whether every argument is strictly greater than
+the respective next argument.  It returns @code{t} if so, @code{nil}
 otherwise.
 @end defun
 
-@defun >=  number-or-marker1 number-or-marker2
-This function tests whether its first argument is greater than or
-equal to its second argument.  It returns @code{t} if so, @code{nil}
+@defun >= number-or-marker &rest number-or-markers
+This function tests whether every argument is greater than or equal to
+the respective next argument.  It returns @code{t} if so, @code{nil}
 otherwise.
 @end defun
 
@@ -446,7 +447,7 @@ may be integers or floating point numbers.  @var{divisor} may also be
 functions convert @var{number} to an integer, or return it unchanged
 if it already is an integer.  If @var{divisor} is non-@code{nil}, they
 divide @var{number} by @var{divisor} and convert the result to an
-integer.  integer.  If @var{divisor} is zero (whether integer or
+integer.  If @var{divisor} is zero (whether integer or
 floating-point), Emacs signals an @code{arith-error} error.
 
 @defun truncate number &optional divisor
@@ -1156,11 +1157,6 @@ This function returns the logarithm of @var{arg}, with base
 returns a NaN.
 @end defun
 
-@defun log10 arg
-This function returns the logarithm of @var{arg}, with base 10:
-@code{(log10 @var{x})} @equiv{} @code{(log @var{x} 10)}.
-@end defun
-
 @defun expt x y
 This function returns @var{x} raised to power @var{y}.  If both
 arguments are integers and @var{y} is positive, the result is an
@@ -1216,7 +1212,7 @@ series of pseudo-random integers.
 
 If @var{limit} is a positive integer, the value is chosen to be
 nonnegative and less than @var{limit}.  Otherwise, the value might be
-any integer representable in Lisp, i.e.@: an integer between
+any integer representable in Lisp, i.e., an integer between
 @code{most-negative-fixnum} and @code{most-positive-fixnum}
 (@pxref{Integer Basics}).