我想在我的脚本中执行以下操作:
1 - ((m - 20) / 34)
我想将此操作的结果分配给另一个变量.我希望我的脚本使用浮点数学.例如,对于m = 34:
results = 1 - ((34 - 20) / 34) == 0.588
bash shell
bash ×1
shell ×1