math 5/2 返回2。
math 5/2
我想要2.5-如何获得十进制值?
您可以math默认情况下“强制”返回分数-使用以下-l选项bc:
math
-l
bc
$ math 5/2 2 $ function bc command bc -l $argv end $ math 5/2 2.50000000000000000000
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
点击生成二维码
我来说两句