baddc

integer-precision dc(1)
git clone git://bvnf.space/baddc.git
Log | Files | Refs | README

commit 74e7e615810378ed2f7a8d9113ed846195a70abf
parent b0467f81237272523c2fb588c24a77aeabcfd4ae
Author: phoebos <ben@bvnf.space>
Date:   Wed, 25 May 2022 12:34:21 +0100

manpage: note input/output bases

Diffstat:
MREADME | 7+++++--
Mbaddc.1 | 5++++-
2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/README b/README @@ -13,8 +13,9 @@ DESCRIPTION baddc reads lines from file or from the standard input if no operands are given, and interprets them as follows: - o If a hexanumerical number is found, it is pushed onto the stack. The - number may be composed of the characters 0-9 and A-F (but not a-f). + o If a hexanumerical number is found, it is pushed onto the stack + according to the current input base. The number may be composed of + the characters 0-9 and A-F (but not a-f). o If the number is prefixed by `_', the negative of the number is pushed. @@ -27,6 +28,8 @@ DESCRIPTION o If a stack overflow or underflow occurs, baddc prints a warning. + The input and output bases default to base 10. + The supported operations are: p Print the top value of the stack without popping it off. diff --git a/baddc.1 b/baddc.1 @@ -20,7 +20,8 @@ or from the standard input if no operands are given, and interprets them as follows: .Bl -bullet .It -If a hexanumerical number is found, it is pushed onto the stack. +If a hexanumerical number is found, it is pushed onto the stack +according to the current input base. The number may be composed of the characters 0-9 and A-F .Pq but not a-f . .It @@ -40,6 +41,8 @@ If a stack overflow or underflow occurs, prints a warning. .El .Pp +The input and output bases default to base 10. +.Pp The supported operations are: .Bl -tag -width Ds .It p