next up previous contents index
Next: How keys are Up: Syntax of the Previous: Syntax of the

Examples of items

The following are valid items; their interpretation is given in parantheses.

    1  (store one copy of an integer or floating value '1' at the next location)
  1*1  (equivalent to the above)
1=1*1  (equivalent to the above except force storage at first element of array)
'abcd' (store the hollerith string 'abcd')
  1.2 (1.2) -.1 (-0.1) 1E0 1e0 (1.) 13e-4 (1.3E-5) -1.05E-7 (-1.05E-7)

The following are all strange, but valid representations of the number 0:

- . e E
-. .e .E -e -E e- E-
-.e -.E .e- .E-
-.e- -.E-
.E3 -.E-10

The following are not valid; the reason is given in parantheses.

-1*1 (repeat count not positive)
-17=5 (location indicator not positive)
3*'abcd' (repeat count not allowed on hollerith item)

Note: If you write '- 1.3 E -3', you won't get the number -1.3E3, but the four numbers 0., 1.3, 0., and -3.


Janne Saarela
Tue May 16 09:50:47 METDST 1995