Files
tldr/pages.zh/common/calc.md

36 lines
621 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# calc
> 一款终端中的交互式任意精度计算器。
> 更多信息请访问: <https://github.com/lcn2/calc>。
- 在交互模式下启动 `calc`
`calc`
- 在非交互模式下进行计算:
`calc '{{85 * (36 / 4)}}'`
- 不格式化输出(用于 [p]ipes
`calc -p '{{4/3 * pi() * 5^3}}'`
- 进行计算后切换到 [i]nteractive 模式:
`calc -i '{{sqrt(2)}}'`
- 以特定权限 [m]ode 启动 `calc`0 到 7默认为 7
`calc -m {{mode}}`
- 查看 `calc` 的介绍:
`calc help intro`
- 查看 `calc` 的概述:
`calc help overview`
- 打开 `calc` 手册:
`calc help`