?Dup


Next: A2tn Up: COD Command Summary Previous: ?

?Dup

Duplicate the number at the top of the stack only if it is non-zero.

Examples:

 5.0 0.0
COD> ?DUP
 5.0 0.0
COD> 1.0 ?DUP
 5.0 0.0 1.0 1.0



Web Page Maintained by: Dr. Lawrence E. Brown elwin@redshift.gsfc.nasa.gov