pull/536/merge
JohnnyL 2023-10-18 02:52:59 -03:00 committed by GitHub
commit 90bf09ffdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 0 deletions

View File

@ -201,6 +201,16 @@
>>> 2+3
5
```
另一个方法是bc 如果你的系统上没有安装python的话)
```
echo "2+3"|bc
5
```
指定scale参数可以控制计算精度
```
echo "scale=4;9/7"|bc
1.2857
```
## 文件及数据处理

View File

@ -210,6 +210,16 @@ EOF
>>> 2+3
5
```
Another approach is to use bc, in case you have no python installed in your system.
```
echo "2+3"|bc
5
```
Specify scale for accuracy control purpse.
```
echo "scale=4;9/7"|bc
1.2857
```
## Processing files and data