ReadDouble4 method

The ReadDouble4 and WriteDouble4 methods are alternatives to ReadFloat and WriteFloat. This is because they support 4-byte System/390 floating point message values that are too large to convert to 4-byte IEEE floating point format.

This method reads 4 bytes from the Message Data buffer, starting with the byte referred to by DataOffset and returns it as a Double (signed 8-byte) floating point value.

The method fails if MQMessage.DataLength is less than 4 when it is issued.

DataOffset is incremented by 4 and DataLength is decremented by 4 if the method succeeds.

The 4 characters of message data are assumed to be a binary floating point number whose encoding is specified by the MQMessage.Encoding property. Note that conversion from System/360 format is not supported.

Defined in: MQMessage class

Syntax:
doublev# = MQMessage.ReadDouble4