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

Coerce Single To Long Function
Windows API Class

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

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

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

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