linux 命令終端計算除法
- 先通過bc,開啟計算模式;
- scale 設置除法精確度
zb@zb-computer:/$ bc
bc 1.06.95
Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
scale=10
1/3
.3333333333
720/1920
.3750000000
0.375/2
.1875000000
1-0.375
.625