linux环境使用计算器功能

it2026-08-23  2

linux环境下如何使用计算器功能

输入bc

然后就进入了计算器模式。

退出则输入quit。

使用示例 示例一 命令行方式使用bc

[root@localhost centos39]# 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'. 3+4 7 3-4 -1 3*4 12 3/4 0 scale=2;3/4 # 保留小数点精度只对除法、取余、乘幂有效 .75 3/4 .75 3%4 0 scale=0 3%4 3 3^4 81

Ctrl+D (退出的快捷键)

最新回复(0)