Commit 11dfc834 authored by Tilman Kranz's avatar Tilman Kranz

bc example with integer precision

parent dd606215
......@@ -19,8 +19,8 @@ echo "let: $a - $b = $c"
# Outdated; using coreutils expr(1).
echo "expr: $a - $b = $(expr $a - $b)"
# Using bc(1) (with precision).
echo "bc -l: $b / $a = $(echo "$b/$a" | bc -l)"
# Using bc(1) (with integer precision).
echo "bc: $b / $a = $(echo "$b/$a" | bc)"
# Using bc(1) (with max. precision).
echo "bc -l: $b / $a = $(echo "$b/$a" | bc -l)"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment