<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>
In Built-in Variables in TurboForth Kernal
Pushes the address of the current number base variable.
: TEST 10 0 DO I . LOOP ;
DECIMAL TEST 2 BASE ! TEST
Default value of BASE is 10 (decimal).
Setting BASE changes how numbers are interpreted in text entered via the command line, and also in source code.
BASE
The allowable range for BASE is 2 to 36. Any value outside of this range shall cause unpredictable results.