manpagez: man pages & more
man math(1)
Home | html | info | man
math(1)                              fish                              math(1)




NAME

       math - Perform mathematics calculations


   Synopsis
       math EXPRESSION

   Description
       math is used to perform mathematical calculations. It is only a very
       thin wrapper for the bc program, that makes it possible to specify an
       expression from the command line without using non-standard extensions
       or a pipeline. Simply use a command like math 1+1.

       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 environment variables or the
       output of command substitutions, but it also means that parenthesis
       have to be escaped.



Version 1.23.1                    8 Mar 2009                           math(1)

fish 1.23.1 - Generated Sun Mar 8 14:11:11 CDT 2009
© manpagez.com 2000-2025
Individual documents may contain additional copyright information.