From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/elisp/predicates-on-numbers.html | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 devdocs/elisp/predicates-on-numbers.html (limited to 'devdocs/elisp/predicates-on-numbers.html') diff --git a/devdocs/elisp/predicates-on-numbers.html b/devdocs/elisp/predicates-on-numbers.html new file mode 100644 index 00000000..c0553cd9 --- /dev/null +++ b/devdocs/elisp/predicates-on-numbers.html @@ -0,0 +1,24 @@ +

Type Predicates for Numbers

The functions in this section test for numbers, or for a specific type of number. The functions integerp and floatp can take any type of Lisp object as argument (they would not be of much use otherwise), but the zerop predicate requires a number as its argument. See also integer-or-marker-p and number-or-marker-p, in Predicates on Markers.

Function: bignump object +

This predicate tests whether its argument is a large integer, and returns t if so, nil otherwise. Unlike small integers, large integers can be = or eql even if they are not eq.

+
Function: fixnump object +

This predicate tests whether its argument is a small integer, and returns t if so, nil otherwise. Small integers can be compared with eq.

+
Function: floatp object +

This predicate tests whether its argument is floating point and returns t if so, nil otherwise.

+
Function: integerp object +

This predicate tests whether its argument is an integer, and returns t if so, nil otherwise.

+
Function: numberp object +

This predicate tests whether its argument is a number (either integer or floating point), and returns t if so, nil otherwise.

+
Function: natnump object +
+

This predicate (whose name comes from the phrase “natural number”) tests to see whether its argument is a nonnegative integer, and returns t if so, nil otherwise. 0 is considered non-negative.

wholenump is a synonym for natnump.

+
+
Function: zerop number +
+

This predicate tests whether its argument is zero, and returns t if so, nil otherwise. The argument must be a number.

(zerop x) is equivalent to (= x 0).

+
+
+

+ Copyright © 1990-1996, 1998-2022 Free Software Foundation, Inc.
Licensed under the GNU GPL license.
+ https://www.gnu.org/software/emacs/manual/html_node/elisp/Predicates-on-Numbers.html +

+
-- cgit v1.2.3