wyy@ubuntu:~$ bc
bc 1.07.1
Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006, 2008, 2012-2017 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
1+3+5
9
1-30
-29
10/100
0
2^2
4
scale=3
10/100
.100
quit
1.支持+、-、*、/、%、^六种计算。
2.默认仅输出整数,如果需要输出小数,需执行【scale=小数位数】命令。
3.使用【quit】退出。