2009-10-17 浮動小数点の演算を行う UNIX/Linux 小数を含む数値の計算を行うにはbcコマンドが使われる #!/bin/sh #float.sh A=5 B=7 echo 'scale=5; sqrt(1/3)' | bc