DUP ( n -- n n )
published: 27 January 2023 / updated 27 January 2023
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
published: 27 January 2023 / updated 27 January 2023
Duplicates the single-precision integer at the top of the data stack.
: SQUARE ( n --- nE2) DUP * ; 5 SQUARE . \ display 25 10 SQUARE . \ display 100