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

相关文章:

  • 2022-02-16
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
  • 2021-06-24
  • 2021-11-18
  • 2021-12-22
  • 2021-12-27
猜你喜欢
  • 2021-05-01
  • 2022-12-23
  • 2021-12-27
  • 2021-08-06
  • 2021-07-06
  • 2021-09-16
  • 2022-01-24
相关资源
相似解决方案