1.2 KiB
1.2 KiB
计算器
| 返回 | 类型 | 说明 |
|---|---|---|
| result | any | 供下述方法复用的对象或类型命名空间;直接调用所需的子函数。 |
这是一个普通的 Marqdo 文档。
其中包含一些可以复用的数学计算知识。
加法
| 参数 | 类型 | 默认 | 说明 |
|---|---|---|---|
| a | any | 必填 | Left operand supplied to this calculation |
| b | any | 必填 | Right operand supplied to this calculation |
| 返回 | 类型 | 说明 |
|---|---|---|
| result | any | 下文显式返回的计算值或结构化结果;分支存在时遵循实际命中的分支。 |
计算两个数字a和b的和。
完成上述步骤后,返回*[计算结果]((a + b))*。
乘法
| 参数 | 类型 | 默认 | 说明 |
|---|---|---|---|
| a | any | 必填 | Left operand supplied to this calculation |
| b | any | 必填 | Right operand supplied to this calculation |
| 返回 | 类型 | 说明 |
|---|---|---|
| result | any | 下文显式返回的计算值或结构化结果;分支存在时遵循实际命中的分支。 |
计算两个数字a和b的积。
完成上述步骤后,返回*[计算结果]((a * b))*。