DUP  ( n -- n n )

published: 27 January 2023 / updated 27 January 2023

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