BitConverter: DoubleToInt64Bits

DoubleToInt64Bits

Converts the bit representation of a Double to a Currency.



 Public Function DoubleToInt64Bits(
	  ByVal Value As Double ) As Currency

Parameters

Value
[ByVal] Double. The Double bits to convert to Currency bits.

Return Values

Currency -  The bit representation from the Double.

Remarks

This does not convert a Double value to that of a Currency value (like using CCur). This will copy the 64 bits of the Double variable to the 64 bits of the Currency variable.

See Also

Project VBCorLib Overview Class BitConverter Overview BitConverter Properties BitConverter Methods GetBytes