# 答案格式化

Soulver 提供了多种答案格式化选项。

### 默认格式化

您可以通过前往 `设置 > 计算器 > 数字格式` 来设置默认格式化偏好，或者通过上下文菜单（在答案上右键单击）或使用 `格式` 菜单来自定义单行的格式。

{% hint style="info" %}
如果您手动为某一行设置了格式化选项，该选项将不再与默认格式化选项“同步”。您可以通过前往 `格式 > 重置为默认值` 将某行的格式化重置为与默认值匹配并同步。
{% endhint %}

### 小数位数 (dp)

您可以使用 `格式` > `精度` 菜单或上下文菜单更改答案显示的位数：

![通过上下文菜单设置小数位数](/files/LKyhWAcdzzw1dOeDxuqe)

{% hint style="warning" %}
四舍五入格式化仅是**外观**上的。子总计和行引用将使用**未四舍五入**的最大精度答案。
{% endhint %}

### 大数字表示法

Soulver 使用 [SI Notation](https://en.wikipedia.org/wiki/Metric_prefix)。

例如，1,700,000 表示为 1.7M，使数字更清晰。

如果您需要看到完整的数字，可以在答案的上下文菜单中为单行禁用此功能。或者在 `计算器 > 数字格式` 设置中完全禁用所有行的此功能。

### 货币四舍五入

如果开启了货币四舍五入（默认设置），货币将自动四舍五入到其偏好的位数。对于大多数货币，这是 2 位小数，但像日元这样的货币则四舍五入到 0 位小数。

{% hint style="warning" %}
与普通行不同，货币的**四舍五入答案**用于子总计和行引用。这符合现实世界中金钱的工作方式。

如果您需要达到分以下精度，您应该禁用货币四舍五入。
{% endhint %}

![关闭货币四舍五入后，子总计的 1 分钱差异？](/files/tQe1lUDDTF5uY6gmIEDl)

{% hint style="warning" %}
例外情况是使用变量时，变量总是使用**未四舍五入的答案**，即使是货币行也是如此。

您可能希望像下面所示手动对变量中的货币进行四舍五入，或者使用行引用。
{% endhint %}

![行引用使用四舍五入的货币值，变量不使用。](/files/hrYhbE6h8dcOBt8M68PM)


---

# 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://documentation.soulver.app/zh/documentation/formatting/answer-formatting-options.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.
