From e262a20568c5f3bc9e10d81ab00b51ea36d96044 Mon Sep 17 00:00:00 2001 From: Thomas Jaensch Date: Fri, 1 Apr 2016 10:14:31 -0400 Subject: [PATCH] Fixed grammar errors on line 664 in Bash-Prog-Intro-HOWTO.sgml --- LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml b/LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml index 7a9703b5..95c3069b 100644 --- a/LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml +++ b/LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml @@ -661,7 +661,7 @@ Misc

If you need to use fractions, or more math or you just want it, you can use bc to evaluate arithmetic expressions. -

if i ran "echo $[3/4]" at the command prompt, it would return 0 +

If I ran "echo $[3/4]" at the command prompt, it would return 0 because bash only uses integers when answering. If you ran "echo 3/4|bc -l", it would properly return 0.75.