Skip to content

Commit

Permalink
feat(wiki): bash floating point math using bc
Browse files Browse the repository at this point in the history
  • Loading branch information
nagy135 committed Jun 9, 2022
1 parent 5bdedc0 commit 97e5911
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions wiki/wiki/bash.wiki
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[[array]]
[[vim mode]]
[[generate random string of length]]
[[floating point math]]
6 changes: 6 additions & 0 deletions wiki/wiki/floating point math.wiki
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
a=10
b=2.5

echo "scale = 2; $a / $b" | bc

// vim: ft=sh

0 comments on commit 97e5911

Please sign in to comment.