Function Windows API Class

HIDWORD

"High Double Word" Return the high-order double-word (4 bytes) of a Double (precision floating-point) value. Return the Long (Integer) value whose in-memory representation is the same as the left-most, most-significant double-word of Double value vValue.

Signature (Visual Basic / VBA)

Public Function HIDWORD( _
    ByVal vValue As Double _
    ) As Long

Code Example

    HIDWORD(1) = 1072693248
    HIDWORD(2) = 1073741824

Notes & Version History

Note Use the CoerceTwoLongsToDouble function to reconstruct a Double from two Long values.
Note Similar to but faster than using the MakeDouble and CoerceToLong functions.