Bash에서 실수 비교: bc -l
if (( $( echo "1.0 > 1.1" | bc -l ) )) ; then
# ...
fi
참조: https://stackoverflow.com/questions/8654051/how-can-i-compare-two-floating-point-numbers-in-bash
Purewell's Personal Blog
Bash에서 실수 비교: bc -l
if (( $( echo "1.0 > 1.1" | bc -l ) )) ; then
# ...
fi
참조: https://stackoverflow.com/questions/8654051/how-can-i-compare-two-floating-point-numbers-in-bash
댓글
댓글 쓰기