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.