Lines Matching +full:dc +full:- +full:to +full:- +full:dc

4  * SPDX-License-Identifier: BSD-2-Clause
6 * Copyright (c) 2018-2025 Gavin D. Howard and contributors.
19 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 * The dc help text.
38 dc is a reverse-polish notation command-line calculator which supports unlimited
40 at https://github.com/gavinhoward/bc/tree/%s/manuals/dc/%s.1.md .
42 This dc is (mostly) compatible with the OpenBSD dc and the GNU dc. See the
43 OpenBSD man page (http://man.openbsd.org/OpenBSD-current/man1/dc.1) and the GNU
44 dc manual (https://www.gnu.org/software/bc/manual/dc-1.05/html_mono/dc.html)
47 This dc has a few differences from the two above:
50 dc does.
51 2) This dc implements the GNU extensions for divmod ("~") and modular
53 3) This dc implements all FreeBSD extensions, except for "J" and "M".
54 4) This dc does not implement the run command ("!"), for security reasons.
55 5) Like the FreeBSD dc, this dc supports extended registers. However, they are
61 [a-z][a-z0-9_]*
69 Also note that, unlike the FreeBSD dc, extended registers are not even
70 parsed unless the "-x" option is given. Instead, the space after a command
75 -C --no-digit-clamp
77 Disables clamping of digits that are larger than or equal to the current
80 This means that the value added to a number from a digit is always that
81 digit's value multiplied by the value of ibase raised to the power of the
84 If multiple of this option and the -c option are given, the last is used.
86 -c --digit-clamp
88 Enables clamping of digits that are larger than or equal to the current
91 This means that digits that the value added to a number from a digit that
92 is greater than or equal to the ibase is the value of ibase minus 1 all
93 multiplied by the value of ibase raised to the power of the digit's
96 If multiple of this option and the -C option are given, the last is used.
99 -E seed --seed=seed
101 Sets the builtin variable seed to the given value assuming that the given
106 -e expr --expression=expr
109 given, they are all run. After running, dc will exit.
111 -f file --file=file
113 Run the dc code in "file" and exit. See above.
115 -h --help
119 -I ibase --ibase=ibase
121 Sets the builtin variable ibase to the given value assuming that the given
125 -i --interactive
127 Put dc into interactive mode. See the man page for more details.
129 -L --no-line-length
133 -O obase --obase=obase
135 Sets the builtin variable obase to the given value assuming that the given
139 -P --no-prompt
143 -R --no-read-prompt
147 -S scale --scale=scale
149 Sets the builtin variable scale to the given value assuming that the given
153 -V --version
157 -x --extended-register
161 -z --leading-zeroes
163 Enable leading zeroes on numbers greater than -1 and less than 1.
169 Command-line arguments to use on every run.
173 If an integer, the number of characters to print on a line before
178 If an integer and non-zero, reset on SIGINT, rather than exit, when in
187 If an integer and non-zero, enable TTY mode when it is available.
195 If an integer and non-zero, enable prompt when TTY mode is possible.
203 If an integer and non-zero, exit when expressions or expression files are
204 given on the command-line, and does not exit when an integer and zero.
210 If an integer and non-zero, clamp digits larger than or equal to the