> For the complete documentation index, see [llms.txt](https://documentation.soulver.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.soulver.app/zh/documentation/formatting/answer-formatting-options.md).

# 答案格式化

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

### 默认格式化

在Mac上，设置**Settings > Numbers**中的默认数字格式。要自定义单个线路，请按住 Control 键单击其答案或使用 **Format** 菜单。

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

### 小数位数 (dp)

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

![通过上下文菜单设置小数位数](https://2663624730-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoO1ict55PUohNZzhtv5D%2Fuploads%2Fgit-blob-cb9b2d0a8d6552f46f3a01f5f93e1af6e41e7507%2FScreen%20Shot%202020-08-20%20at%2011.51.55%20am.png?alt=media)

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

### 大数字表示法

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

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

要显示一行的完整数字，请按住 Control 键单击其答案并关闭大数字表示法。在 Mac 上，通过关闭 **Use notation for large numbers** 更改 **Settings > Numbers** 中工作表的默认设置。

### 货币四舍五入

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

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

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

![关闭货币四舍五入后，子总计的 1 分钱差异？](https://2663624730-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoO1ict55PUohNZzhtv5D%2Fuploads%2Fgit-blob-d8038885037bc44f035e4fcc1f2a7e345bf64814%2Fimage%20\(17\).png?alt=media)

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

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

![行引用使用四舍五入的货币值，变量不使用。](https://2663624730-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoO1ict55PUohNZzhtv5D%2Fuploads%2Fgit-blob-39c8a395d375a9cdce7d8fbda7b95fb4793c3982%2Fimage%20\(21\).png?alt=media)

### 答案栏外观

在 Mac 上，打开 **Settings > Styling > Answer Column** 将答案左对齐或右对齐并更改列的背景颜色。
