diff options
author | Mark Griffiths <mark@thebespokepixel.com> | 2014-08-19 13:41:23 +0100 |
---|---|---|
committer | Mark Griffiths <mark@thebespokepixel.com> | 2014-09-03 14:43:26 +0100 |
commit | 137abd0cfaa8959224f88a4ebe9584a51468cc88 (patch) | |
tree | c396f760a1e309b5a837359e65c57c4555534d49 /doc_src/math.txt | |
parent | d7308fecbe573aad91fc6f1377c1ed2df735f6fd (diff) |
Make line length, wrapping and spacing consistent
Diffstat (limited to 'doc_src/math.txt')
-rw-r--r-- | doc_src/math.txt | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/doc_src/math.txt b/doc_src/math.txt index 3b984fc0..994f1515 100644 --- a/doc_src/math.txt +++ b/doc_src/math.txt @@ -8,21 +8,13 @@ math EXPRESSION \subsection math-description Description -`math` is used to perform mathematical calculations. It is a very -thin wrapper for the bc program, which makes it possible to specify an -expression from the command line without using non-standard extensions -or a pipeline. - -For a description of the syntax supported by math, see the manual for -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 shell variables or the -output of command substitutions, but it also means that parenthesis -have to be escaped. +`math` is used to perform mathematical calculations. It is a very thin wrapper for the bc program, which makes it possible to specify an expression from the command line without using non-standard extensions or a pipeline. + +For a description of the syntax supported by math, see the manual for 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 shell variables or the output of command substitutions, but it also means that parenthesis have to be escaped. + \subsection math-example Examples `math 1+1` outputs 2. -`math $status-128` outputs the numerical exit status of the -last command minus 128. +`math $status-128` outputs the numerical exit status of the last command minus 128. |