diff --git a/bash/grains/grains.sh b/bash/grains/grains.sh index 9fc364a..00856d4 100644 --- a/bash/grains/grains.sh +++ b/bash/grains/grains.sh @@ -23,7 +23,7 @@ then do grains_on_square=$(echo "2^($square-1)" | bc) - # use floating point arithmetic (bc) + # use arbitrary precision arithmetic using basic calculator (bc) total_grains=$(echo "$total_grains + $grains_on_square" | bc) done echo $total_grains