# 3.3 谓词：数字相关

本节中的函数测试数字或特定类型的数字。函数 integerp 和 floatp 可以接受任何类型的 Lisp 对象作为参数（否则它们不会有太大用处），但 zerop 谓词需要一个数字作为参数。另见 integer-or-marker-p 并 number-or-marker-p 在标记谓词。

Function：bignump object 这个谓词测试它的参数是否是一个大整数，如果是，则返回 t，否则返回 nil。与小整数不同，大整数可以是=或者eql即使不是eq。

Function：fixnump object 这个谓词测试它的参数是否是一个小整数，如果是，则返回 t，否则返回 nil。小整数可以与 进行比较eq。

Function：floatp object 这个谓词测试它的参数是否是浮点数，如果是，则返回 t，否则返回 nil。

Function：integerp object 这个谓词测试它的参数是否是一个整数，如果是则返回 t，否则返回 nil 。

Function：numberp object 这个谓词测试它的参数是否是一个数字（整数或浮点数），如果是，则返回 t，否则返回 nil。

Function：natnump object 这个谓词（它的名字来自短语“natural number”）测试它的参数是否是一个非负整数，如果是，则返回 t，否则返回 nil。0 被认为是非负数。

wholenump 是 natnump 的同义词。

Function：zerop number 这个谓词测试它的参数是否为零， 如果是，则返回 t，否则返回 nil。参数必须是数字。

(zerop x) 相当于 (= x 0)。


---

# 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/shu-zi/wei-ci-shu-zi-xiang-guan.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.
