相关疑难解决方法(0)

在Bash中舍入一个分开的数字

我如何从两个分开的数字中舍入结果,例如

3/2
Run Code Online (Sandbox Code Playgroud)

就像我一样

testOne=$((3/2))
Run Code Online (Sandbox Code Playgroud)

$ testOne包含"1",它应该向上舍入为"2",作为3/2 = 1.5的答案

linux math bash shell rounding

44
推荐指数
6
解决办法
12万
查看次数

标签 统计

bash ×1

linux ×1

math ×1

rounding ×1

shell ×1