# 2.4.1 整型

隐藏在整型黑盒内部的, 是两种整型: 一种(fixnums)用于较小的数字 , 另一种(bignums)用于较大的数字.

其中 fixnums 类型的取值范围取决于具体的机器. 最小的范围是-536,870,912 到 536,870,911 (30位), 不过大多数机器支持的范围更大.

bignums 拥有任意大小的精度. 数字在 fixnums 类型中溢出时便会自动返回 bignums 类型的版本.

所有的数字都可以使用 eql 或 = 进行比较. fixnums 也可以使用 eq 比较. 你可以将数字和 most-negative-fixnum 和 most-positive-fixnum 比较, 以此来判断一个数是 fixnum 还是 bignum. 当然, 你还可以使用谓语 fixnump 和 bignump 来测试。

整型数的阅读语法是十进制的数字序列表示, 可以加上额外的正负号, 或者点, 打印表示并不会包含正负号, 也不会出现点。

```
-1               ; 整数 -1.
1                ; 整数 1.
1.               ; 还是整数 1.
+1               ; 同样是整数 1.
```

详情查阅 数字章节


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://emacs-lisp.ivory.cafe/lisp-shu-ju-lei-xing/bian-cheng-lei-xing/2.4.1-zheng-shu-xing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
