manpagez: man pages & more
info dc
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5. Stack Control

c

Clears the stack, rendering it empty.

d

Duplicates the value on the top of the stack, pushing another copy of it. Thus, ‘4d*p’ computes 4 squared and prints it.

r

Reverses the order of (swaps) the top two values on the stack. (This command is a GNU extension.)


© manpagez.com 2000-2017
Individual documents may contain additional copyright information.