📜  bash 浮动操作 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:57.138000             🧑  作者: Mango

代码示例1
bc -l <<< '10/3' # Fast way
3.33333333333333333333
bc <<< 'scale=2; 10/3' #Define also how many decimals to take in scale
3.33