mirror of
https://github.com/LCTT/TranslateProject.git
synced 2024-12-26 21:30:55 +08:00
Merge pull request #29721 from wxy/20230703.0-⭐️⭐️-Bash-Basics-Series-4-Arithmetic-Operations
R:published/20230703.0 ⭐️⭐️ Bash Basics Series 4 Arithmetic Operations.md
This commit is contained in:
commit
39c0a8aa7f
@ -43,7 +43,7 @@ sum=$(($num1 + $num2))
|
||||
| `*` | 乘法|
|
||||
| `/` | 整数除法(不带小数) |
|
||||
| `%` | 模除法(仅余数)|
|
||||
| `**`` | 求幂(a 的 b 次方)|
|
||||
| `**` | 求幂(a 的 b 次方)|
|
||||
|
||||
> 🚧 Bash 不支持浮点数(小数)。你必须使用其他命令(例如 `bc`)来处理它们。
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user