算术运算
bc 终端下简单好用的计算机器
bc:
bc 终端下简单好用的计算机器
bc:
[root@li bin]# 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 ' .
1 + 2 + 3 + 4
10
10 * 52
520
10 / 100
0
scale = 3
10 / 100
. 100
quit
[root@li bin]# bc -- help
usage: bc [options] [file ...]
- h -- help print this usage and exit
- i -- interactive force interactive mode
- l -- mathlib use the predefine math routnes
- q -- quiet don ' t print initial banner
- s -- standard non - standard bc constructs are errors
- w -- warn warn about non - standard bc constructs
- v -- version print version information and exit
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 ' .
1 + 2 + 3 + 4
10
10 * 52
520
10 / 100
0
scale = 3
10 / 100
. 100
quit
[root@li bin]# bc -- help
usage: bc [options] [file ...]
- h -- help print this usage and exit
- i -- interactive force interactive mode
- l -- mathlib use the predefine math routnes
- q -- quiet don ' t print initial banner
- s -- standard non - standard bc constructs are errors
- w -- warn warn about non - standard bc constructs
- v -- version print version information and exit