dup  ( n -- n n )

published: 9 January 2022 / updated 16 February 2022

Lire cette page en français

 

vocabulary: forth

Duplicates the single-precision integer at the top of the data stack.

Example:

: SQUARE ( n --- nE2) 
    DUP * ; 
5 SQUARE .    \ display 25 
10 SQUARE .   \ display 100 

Legal: site web personnel sans commerce / personal site without seling