diff --git a/wiki/wiki/bash.wiki b/wiki/wiki/bash.wiki index 49f67370..79cbe22c 100644 --- a/wiki/wiki/bash.wiki +++ b/wiki/wiki/bash.wiki @@ -1,3 +1,4 @@ [[array]] [[vim mode]] [[generate random string of length]] +[[floating point math]] diff --git a/wiki/wiki/floating point math.wiki b/wiki/wiki/floating point math.wiki new file mode 100644 index 00000000..1bf17f4e --- /dev/null +++ b/wiki/wiki/floating point math.wiki @@ -0,0 +1,6 @@ +a=10 +b=2.5 + +echo "scale = 2; $a / $b" | bc + +// vim: ft=sh