From 1b5152e58f821e4c45730b9e8201cbcecf73f579 Mon Sep 17 00:00:00 2001 From: kalebo Date: Mon, 31 Oct 2016 17:37:05 -0600 Subject: [PATCH] Added a line about interactive usage with mathlib Usually `bc` isn't very useful if it doesn't return have floating point number where appropriate. e.g., 3/4 returns 0 when started with `-i` but for most users they would expect 0.75 to be returned so the argument `-l`does what the user would generally want. --- pages/common/bc.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/bc.md b/pages/common/bc.md index 0cc228f06b..487ec6301d 100644 --- a/pages/common/bc.md +++ b/pages/common/bc.md @@ -6,6 +6,10 @@ `bc -i` +- Run calculator in interactive mode with floating point support: + +`bc -l` + - Calculate the result of an expression: `bc <<< "(1 + 2) * 2 ^ 2"`