HEX

( -- )

Set contents of BASE to sixteen.

Testing:

ContributeContributions

NieDzejkobavatar of NieDzejkob Suggested reference implementationSuggested reference implementation2018-01-06 18:19:18

: HEX 16 BASE !

alextangentavatar of alextangent 2018-01-08 15:52:01

  1. This is not a correct definition; the closing ; is missing.
  2. It will only compile correctly if the 16 is interpreted as a decimal number, which the definition does not ensure.
Reply