FANDOM


Syntax

MAKE "BASE number

Explanation

BASE is a pre-defined name which determines the base in which numbers are output by Logo. BASE requires an integer between 2 and 16 as its input.

The base in which numbers are input into Logo is separately controlled by the system name IBASE.

Examples

? MAKE "BASE 2

? PRINT 10

1010

?

10 in base 10 is 01010 in base 2.

? MAKE "BASE 16

? PRINT 10

0A

?

10 in base 10 is 0A in base 16.