diff options
author | axel <axel@liljencrantz.se> | 2006-12-13 03:10:37 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-12-13 03:10:37 +1000 |
commit | b3fa76c1beac9719d97917361a9d7fde2d678300 (patch) | |
tree | 747e5e12a20fa24d1f02df0516122a1ce671a01e /doc_src/math.txt | |
parent | d3dd9400e385d3d00b064d268499e0d5f94b7bba (diff) |
Extend documentation for the math function
darcs-hash:20061212171037-ac50b-1b9d0f51b284925fe0fc3020774ec32bb1414ce7.gz
Diffstat (limited to 'doc_src/math.txt')
-rw-r--r-- | doc_src/math.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/doc_src/math.txt b/doc_src/math.txt index a29a3a83..b58527f9 100644 --- a/doc_src/math.txt +++ b/doc_src/math.txt @@ -8,8 +8,13 @@ math is used to perform mathematical calcualtions. It is only a very thin wrapper for the bc program, that makes it possible to specify an -expression from the commandline without using non-standard extensions +expression from the command line without using non-standard extensions or a pipeline. Simply use a command like <code>math 1+1</code>. For a description of the syntax supported by math, see the manual for -the bc program. +the bc program. Keep in mind that parameter expansion takes place on +any expressions before they are evaluated. This can be very useful in +order to perform calculations involving environment variables or the +output of command substitutions, but it also means that parenthesis +have to be escaped. + |