Next: , Previous: Symbols, Up: Values



6.3.2 Numbers

A number in Malaga consists of an integer part, an optional fractional part and an optional exponent of the form E[+|-]n. There must be a dot between the integer part and the fractional part. Examples: 0, 1, 1.0, 13.75, 1.2E-5.

Alternatively, a number may consist of an integer number followed by L, indicating that the number is intended as a list index counting from the left border), or by R, indicating that the number is intended as a list index counting from the right border. Examples: 5L = 5, 12R = -12.