Function Windows API Class

LODWORD

"Low Double Word" Return the low-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 right-most, least-significant double-word of Double value vValue.

Signature (Visual Basic / VBA)

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

Code Example

    LODWORD(1) = 0
    LODWORD(2) = 0

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.