> For the complete documentation index, see [llms.txt](https://docs-cn.hapigo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-cn.hapigo.com/extention/calculation.md).

# 计算与汇率换算

### 四则计算

* 打开主窗口，直接输入四则运算公式即可计算
* 回车可以复制结果
* 输入 =  可以将结果带入主搜索框

### 汇率换算

HapiGo 支持实时汇率换算，但此结果仅供参考，无法作为投资依据。

打开主窗口，输入金额（如：$100），HapiGo 会自动给出人民币结果。同样的，如果输入 ￥100，HapiGo 也会计算出美元结果。应用默认设定人民币和美元的互换。

如果你希望得到其他货币的兑换结果，可以在金额后面输入 >，此时可以搜索任意货币进行换算。

<figure><img src="/files/7cBleHDeZ0RT8tygZUwE" alt=""><figcaption></figcaption></figure>

#### 货币格式

在上面的介绍中，我们讲到输入货币以及搜索货币，所以有必要介绍一下 HapiGo 支持的货币格式。以下是 6 种我们支持的格式：

1. 货币符号+数字：￥100/100￥
2. 货币代码+数字：CNY100/100CNY
3. 国家中文名+数字（支持拼音）：中国100/100中国
4. 国家英文名+数字：China100/100China
5. 货币名称+数字（支持拼音）：人民币100/100人民币
6. 货币俗称+数字（支持拼音）：100元/元100/100块/块100/RMB100/100RMB

所以，上文当需要将人民币转成日元时：输入 cny100> ，然后可以用日元、日本、riben、japan、jpy 等方式来搜索目标货币。


---

# 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:

```
GET https://docs-cn.hapigo.com/extention/calculation.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.
