[Bug 13566] Precision and input radix operations don't work in "dc" applet

bugzilla at busybox.net bugzilla at busybox.net
Thu Feb 25 19:56:21 UTC 2021


https://bugs.busybox.net/show_bug.cgi?id=13566

Denys Vlasenko <vda.linux at googlemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WORKSFORME
             Status|NEW                         |RESOLVED

--- Comment #1 from Denys Vlasenko <vda.linux at googlemail.com> ---
$ ./dc
2 k
8 i
7777
p
4095

$ ./dc --help
BusyBox v1.34.0.git (2021-02-18 23:20:26 CET) multi-call binary.

Usage: dc [-x] [-eSCRIPT]... [-fFILE]... [FILE]...

Tiny RPN calculator. Operations:
+, -, *, /, %, ~, ^, |,
p - print top of the stack without popping
f - print entire stack
k - pop the value and set the precision
i - pop the value and set input radix
o - pop the value and set output radix
Examples: dc -e'2 2 + p' -> 4, dc -e'8 8 * 2 2 + / p' -> 16

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list