CVD

Converts a 64-bit integer or 8-byte string to a double-precision value

Syntax
	KeyPgDeclareDeclare KeyPgFunctionFunction CVD ( KeyPgByvalByVal l KeyPgAsAs KeyPgLongintLongInt ) KeyPgAsAs KeyPgDoubleDouble
	KeyPgDeclareDeclare KeyPgFunctionFunction CVD ( KeyPgByrefByRef str KeyPgAsAs KeyPgConstQualifierConst KeyPgStringString ) KeyPgAsAs KeyPgDoubleDouble

Usage
	result = CVD( l )
	result = CVD( str )

Parameters
	l
		A 64-bit KeyPgLongintLongInt with a binary copy of a double-precision variable 
		stored in it.
	str
		A KeyPgStringString at least 8 bytes in length with a binary copy of a 
		double-precision variable stored in it.

Return Value
		Returns a KeyPgDoubleDouble value holding a binary copy of the input value.

Description
	Does a binary copy from a 64-bit KeyPgLongintLongInt or 8-byte KeyPgStringString to a KeyPgDoubleDouble 
	variable.  A value of zero (0.0) is returned if the string is less than 
	8 bytes in length.  The result will make sense only if the parameter 
	contained a IEEE-754 formatted double-precision value, such as one 
	generated by KeyPgCvlongintCVLongInt or KeyPgMkdMKD.

	This function is useful to read numeric values from buffers without 
	using a KeyPgTypeType definition.

Example
	Dim d As Double, l As LongInt
	d = 1.125
	l = CVLongInt(d)

	Print Using "l = _&H&"; Hex(l)
	Print Using "cvd(i) = &"; CVD(l)

Differences from QB
	* QB did not support integer arguments.

See also
	* KeyPgMkdMKD
	* KeyPgCvsCVS
	* KeyPgCvlongintCVLongInt

