Numeric Subscripts

Numeric subscripts have the format:

        [ sign bit ] [ biased exponent ] [ normalized mantissa ]
        

The sign bit and biased exponent together form the first byte of the numeric subscript. Bit seven (7) is the sign bit. Bits <6:0> comprise the exponent. The remaining bytes preceding the subscript terminator of one null (ASCII 0) byte represent the variable length mantissa. The following description shows how GT.M converts each numeric subscript type to its internal format:

Zero (0) subscript (special case)

Mantissa

Exponent

Sign

Example:

        Global Variable Name:
        ----
        ^NAME(.12,0,"STR",-34.56)
        Internal Representation:
        ------------------------
        4E 41 4D 45 0 BE 13 0 80 0 FF 53 54 52 0 3F CA A8 FF 00 00
         N A M E .12 0 S T R -34.56