M has both string and numeric literals.
To include a quotation mark (") within a strlit, use a set of two quotation marks ("" "").
GTM>write """" " GTM>
GTM>WRITE "A"_$CHAR(9)_"B" A B GTM>
In M, numeric literals (numlit) are entered without surrounding delimiters.
GTM>WRITE 1 1 GTM> WRITE 1.1 1.1
These display numeric literals that are integer and decimal.
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. |