LINUXJI积算器bc

时间:2022-05-18 23:47:00

hling@hling:~$ 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'.
1-2  #输入
-1
2+2 #输入
4
22*3  #输入
66
2/3  #输入
0
3%3  #输入
0
3%5 #输入
3
quit #退出

hling@hling:~$ 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=2  #保留两位小数
2/3
.66

相关文章