CVS

Converts a 32-bit integer or 4-byte string to a single-precision variable

Syntax
	KeyPgDeclareDeclare KeyPgFunctionFunction CVS ( KeyPgByvalByVal i KeyPgAsAs KeyPgIntegerInteger ) KeyPgAsAs KeyPgSingleSingle
	KeyPgDeclareDeclare KeyPgFunctionFunction CVS ( KeyPgByrefByRef str KeyPgAsAs KeyPgConstQualifierConst KeyPgStringString ) KeyPgAsAs KeyPgSingleSingle

Usage
	result = CVS( i )
	result = CVS( str )

Parameters
	i
		A 32-bit KeyPgIntegerInteger with a binary copy of a single-precision variable 
		stored in it.
	str
		A KeyPgStringString at least 4 bytes in length with a binary copy of a 
		single-precision variable stored in it.

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

Description
	Does a binary copy from a 32-bit KeyPgIntegerInteger or 4-byte KeyPgStringString to a KeyPgSingleSingle 
	variable.  A value of zero (0.0) is returned if the string is less than 
	4 bytes in length.  The result will make sense only if the parameter 
	contained a IEEE-754 formatted single-precision value, such as one 
	generated by KeyPgCviCVI or KeyPgMksMKS.

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

Example
	Dim f As Single, i As Integer
	f = 1.125
	i = CVI(f)

	Print Using "i = _&H&"; Hex(i)
	Print Using "cvs(i) = &"; CVS(i)

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

See also
	* KeyPgMksMKS
	* KeyPgCvdCVD
	* KeyPgCviCVI

