<-- Previous || Up || Next -->

Coerce Long To Single Function
Windows API Class

Public Function CoerceLongToSingle( _
    ByVal vValue As Long _
    ) As Single

Coerce a Long (Integer) value into a Single (precision floating-point) value.
Return the Single value whose bytes have the same in-memory representation as the Long value vValue.
Inverse of the CoerceSingleToLong Function.

Examples:
    CoerceLongToSingle(1) = 1.401298E-45
    CoerceLongToSingle(2) = 2.802597E-45
    CoerceLongToSingle(1065353216) = 1
    CoerceLongToSingle(1073741824) = 2
See also:
    CoerceSingleToLong Function
    MakeLong Function
    CoerceToSingle Function
Note: Similar to but faster than using the MakeLong and CoerceToSingle functions.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.