version 1.26, 2010/10/18 14:48:49 |
version 1.27, 2012/08/19 12:07:21 |
|
|
If multiple |
If multiple |
.Fl e |
.Fl e |
options are specified, they will be processed in the order given. |
options are specified, they will be processed in the order given. |
If no |
|
.Ar file |
|
argument is given, execution will stop after processing the expressions |
|
given on the command line, |
|
otherwise processing will continue with the contents of |
|
.Ar file . |
|
.It Fl x |
.It Fl x |
Enable extended register mode. |
Enable extended register mode. |
This mode is used by |
This mode is used by |
|
|
for a more detailed description. |
for a more detailed description. |
.El |
.El |
.Pp |
.Pp |
|
If neither |
|
.Ar expression |
|
nor |
|
.Ar file |
|
are specified on the command line, |
|
.Nm |
|
reads from the standard input. |
|
Otherwise |
|
.Ar expression |
|
and |
|
.Ar file |
|
are processed and |
|
.Nm |
|
exits. |
|
.Pp |
Ordinarily, |
Ordinarily, |
.Nm |
.Nm |
operates on decimal integers, |
operates on decimal integers, |
but one may specify an input base, output base, |
but one may specify an input base, output base, |
and a number of fractional digits (scale) to be maintained. |
and a number of fractional digits (scale) to be maintained. |
If an argument is given, |
|
input is taken from that file until its end, |
|
then from the standard input. |
|
Whitespace is ignored, except where it signals the end of a number, |
Whitespace is ignored, except where it signals the end of a number, |
end of a line or when a register name is expected. |
end of a line or when a register name is expected. |
The following constructions are recognized: |
The following constructions are recognized: |