> 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/region-settings.md).

# 数字格式

Soulver 应该将 . 解释为小数点还是千位分隔符？

**默认情况下**，Soulver 使用您设备 **语言与地区** 系统设置中的选项。

<figure><img src="https://2663624730-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoO1ict55PUohNZzhtv5D%2Fuploads%2Fgit-blob-3fb48b1aa45796eb68dedc33e05fbe4769ad4086%2FScreenshot%202022-09-04%20at%2012.33.55%20pm.png?alt=media" alt=""><figcaption><p>macOS 系统设置会根据您的地区通知 Soulver 使用的数字格式</p></figcaption></figure>

### 选择您的数字格式设置

在 Mac 上，使用 **Settings > Numbers > Number format** 选择不同的数字格式。

<div align="left"><figure><img src="https://2663624730-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoO1ict55PUohNZzhtv5D%2Fuploads%2Fgit-blob-9b35c183733425891ca83913df34d3a052f8d4e9%2FScreenshot%202025-04-07%20at%2012.31.14%E2%80%AFpm.png?alt=media" alt="" width="361"><figcaption><p>除了系统地区外，可选择三种标准地区之一</p></figcaption></figure></div>

| 格式 | 千位分隔符  | 小数点 |
| -- | ------ | --- |
| 北美 | ,      | .   |
| 西欧 | .      | ,   |
| 东欧 | (空格字符) | ,   |

{% hint style="info" %}
在东欧地区，可使用 `.` 或 `,` 作为小数点
{% endhint %}

### 输入时自动插入千位分隔符

在 **编辑** 设置面板中勾选 **使用千位分隔符格式化数字**，

10000 将自动格式化为 10,000（例如，在北美地区）

<figure><img src="https://2663624730-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoO1ict55PUohNZzhtv5D%2Fuploads%2Fgit-blob-ef702059c85f45dbe49343fd1d8e9b3e05ee7996%2Fimage%20(6).png?alt=media" alt=""><figcaption><p>Soulver 会在您输入数字时自动插入千位分隔符</p></figcaption></figure>

### 粘贴时转换外文格式的数字

在 Mac 上，启用 **Settings > Numbers** 中的 **Convert foreign numbers when pasting** 将粘贴的数字转换为您选择的数字格式。

{% hint style="info" %}
使用外文数字格式的工作表在打开时会自动转换为您选择的数字格式。
{% endhint %}

### 使用下划线作为千位分隔符

您可以使用下划线字符来分隔数字。

这在编程语言中很常见，因此您可以轻松地在 Soulver 和您的代码之间复制和粘贴数字。

```
1_000_000 + 2_000          | 1,002,000
0b_1100_0001 to decimal    | 193
0xCAFE_F00D to decimal     | 3.406G
```
