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:
Xingyu.Wang 2023-07-17 11:24:08 +08:00 committed by GitHub
commit 39c0a8aa7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@ sum=$(($num1 + $num2))
| `*` | 乘法|
| `/` | 整数除法(不带小数) |
| `%` | 模除法(仅余数)|
| `**`` | 求幂a 的 b 次方)|
| `**` | 求幂a 的 b 次方)|
> 🚧 Bash 不支持浮点数(小数)。你必须使用其他命令(例如 `bc`)来处理它们。