<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>


BASE Search:

In Built-in Variables in TurboForth Kernal

Word Name: BASE
Type: Standard word
Data Stack Signature: -- address
Return Stack Signature: --
Availability: V1.0  V1.1  V1.2
Description:

Pushes the address of the current number base variable.

Example:

: TEST
  10 0 DO I . LOOP ;

DECIMAL TEST
2 BASE ! TEST

Comment:

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.

The allowable range for BASE is 2 to 36. Any value outside of this range shall cause unpredictable results.

See Also: DECIMAL  HEX 

<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>