首页 > 系统服务 > 详细

linux 命令终端计算除法

时间:2020-01-09 17:28:42      阅读:94      评论:0      收藏:0      [点我收藏+]

linux 命令终端计算除法

  • 先通过bc,开启计算模式;
  • scale 设置除法精确度
zb@zb-computer:/$ 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=10
1/3
.3333333333

720/1920
.3750000000

0.375/2
.1875000000

1-0.375
.625

linux 命令终端计算除法

原文:https://www.cnblogs.com/pansidong/p/12172365.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!