next up previous contents index
Next: Strings Up: Data Types Previous: Data Types   Contents   Index


Scalars

Scalar variables do not need to be declared, and are type assigned when an assignment is first made. Any unquoted number representation in integer, floating point, or exponential notation is taken as a scalar constant. Character constants enclosed in single quotes (as in C) are accepted, with the value being the ASCII character code. There is a ToChar function which converts ASCII codes to a string representation for printing. Also accepted are hexadecimal integer constants in the form

0xhex_number
For example, 0x0, 0x2a, and 0xffff003b are all valid constants.



Stephen R. Whiteley 2006-10-23