Numeric Literals

In M, numeric literals (numlit) are entered without surrounding delimiters.

Example:

       GTM>WRITE 1
       1
       GTM> WRITE 1.1
       1.1
        

These display numeric literals that are integer and decimal.

M also accepts numeric literals in the form of a mantissa and an exponent, separated by a delimiter of "E" in uppercase. The mantissa may be an integer or a decimal fraction. The integer exponent may have an optional leading minus sign (-).

Example:

       GTM>WRITE 8E6
       8000000
       GTM> WRITE 8E-6
       .000008
       GTM>
        
[Caution]

The exponential numeric form may lead to ambiguities in the meaning of subscripts. Because numeric subscripts collate ahead of string subscripts, the string subscript "01E5" is not the same as the numeric subscript 01E5.