码迷,mamicode.com
首页 > 系统相关 > 详细

LINUXJI积算器bc

时间:2018-04-11 21:42:45      阅读:278      评论:0      收藏:0      [点我收藏+]

标签:style   size   absolute   free   tail   back   software   scale   sof   

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

 

LINUXJI积算器bc

标签:style   size   absolute   free   tail   back   software   scale   sof   

原文地址:https://www.cnblogs.com/1510152012huang/p/8798384.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!