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/integer-type.html | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 devdocs/elisp/integer-type.html (limited to 'devdocs/elisp/integer-type.html') diff --git a/devdocs/elisp/integer-type.html b/devdocs/elisp/integer-type.html new file mode 100644 index 00000000..920dfc54 --- /dev/null +++ b/devdocs/elisp/integer-type.html @@ -0,0 +1,11 @@ +

Integer Type

Under the hood, there are two kinds of integers—small integers, called fixnums, and large integers, called bignums.

The range of values for a fixnum depends on the machine. The minimum range is -536,870,912 to 536,870,911 (30 bits; i.e., -2**29 to 2**29 - 1) but many machines provide a wider range.

Bignums can have arbitrary precision. Operations that overflow a fixnum will return a bignum instead.

All numbers can be compared with eql or =; fixnums can also be compared with eq. To test whether an integer is a fixnum or a bignum, you can compare it to most-negative-fixnum and most-positive-fixnum, or you can use the convenience predicates fixnump and bignump on any object.

The read syntax for integers is a sequence of (base ten) digits with an optional sign at the beginning and an optional period at the end. The printed representation produced by the Lisp interpreter never has a leading ‘+’ or a final ‘.’.

-1               ; The integer -1.
+1                ; The integer 1.
+1.               ; Also the integer 1.
++1               ; Also the integer 1.
+
+

See Numbers, for more information.

+

+ 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/Integer-Type.html +

+
-- cgit v1.2.3