标签:blog http io 使用 ar for div 2014 art
$ bc bc 1.06 Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc. This is free software with ABSOLUTELY NO WARRANTY. For details type `warranty'.然后输入运算,按回车会输出运算结果
2+5 7 3*4 12 7-2 5 2^3 8 6%5 1 3/4 0
scale=3 3/4 .750能够一次输入多个运算,依照分号;来分隔,按回车后一次返回。
2+5;3*4;3*100 7 12 300数值比較
3 > 4 0 3 > 2 1逻辑表达式
(3> 2) || (1 < 2) 1 (3> 2) && (1 > 2) 0
$ echo "3+4" | bc 7分号;分隔输入多个
标签:blog http io 使用 ar for div 2014 art
原文地址:http://www.cnblogs.com/lcchuguo/p/4006345.html