
Additional NewtonScript Features
Other Standard Types
Beyond frames, arrays, and symbols, NewtonScript also provides some other essential types. These are integers, reals, characters, and booleans. Here is a brief description of each:
- Integer
- A 30-bit integer that can hold values from -229 to 229-1.
- Real
- A 64-bit floating point number.
- Boolean
- There are two boolean constants,
true
and nil
. In boolean expressions, any non-nil
value is considered true
. Note: the integer 0 is not the same as the boolean nil.
- Character
- A character. Character constants begin with a
$
(e.g., $a
, $b
, $c
). These are 16-bit characters that use the Unicode encoding scheme.
Strings, another NewtonScript type, require some additional discussion.
An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.
Last modified: 1 DEC 1996