> For the complete documentation index, see [llms.txt](https://docs.coreway.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.coreway.com/yoov-plus/worksheet/worksheet-design/field-type/number.md).

# 数字

数字字段专用于录入和存储数值型数据。

## **1. 字段显示设置** <a href="#id-1-field-display-setting" id="id-1-field-display-setting"></a>

可对数字的显示格式进行个性化配置。

* **单位**：可在数字的**前缀**或**后缀**添加单位（如 `¥`、`kg`、`%`）。
* **小数位数**：可设置固定保留的小数位数（如 `2` 位小数）。
* **千分位显示**：可启用千分位分隔符（如 `1,000,000`）。
* **百分比显示**：可将数值以百分比形式显示（如 `0.85` 显示为 `85%`）。

  > **注意**：以百分比显示的字段在被公式或其他计算调用时，**将按实际数值计算**（例如，显示的 `99%` 在计算中视为 `0.99`）。

## **2. 默认值设置** <a href="#id-2-default-value-setting" id="id-2-default-value-setting"></a>

支持为字段预设自动填充的数值。

* **固定值**：直接输入一个固定的数字。
* **动态值**：
  * **其他字段值**：引用本表或关联表中**数字类型**或**选项赋分值**字段的数值。
  * **查询工作表**：通过查询条件从其他工作表获取匹配记录，并将其数字字段的值填充至此。
  * **函数计算**：使用结果为数值的函数公式进行计算并填充。

## **3. 验证规则** <a href="#id-3-validation-rule" id="id-3-validation-rule"></a>

用于确保录入数值的准确性和有效性。

1. **必填**：该字段必须填写。
2. **不允许重复**：该字段的值在整个工作表中必须唯一。
3. **限定数值范围**：可设置最小值和最大值，输入的数字必须在此范围内。

<figure><img src="/files/oD6dBsNdJGQUFk2Yo5v0" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.coreway.com/yoov-plus/worksheet/worksheet-design/field-type/number.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
