IBASE

Syntax

MAKE "IBASE number

Explanation

IBASE is a pre-defined name which sets the base in which numbers are input to PC Logo. IBASE requires an integer between 2 and 16 as its input.

The base in which numbers are output by Logo is separately controlled by the system name BASE.

Examples

? MAKE "IBASE 16

? PRINT 10

16 (10 in base 16 is 16 in base 10.)

? MAKE "IBASE 2

? PRINT 10

2 (10 in base 2 is 2 in base 10.)

?