CVD
 
Converts an eight byte string to a double-precision variable

Syntax
Usage

result = CVD( str )

Parameters

str
A String exactly eight bytes in length with a binary copy of a double-precision variable stored in it.

Return Value

Returns a Double-Precision variable to copy the binary copy of a double to.

Description

Does a binary copy from a 8-byte-string to a double-precision variable. The result will have a sense only if the string contained a IEEE754 formated double value, as the one generated by MKD.

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

Example

Dim a As Double, b As String
a=4534.4243
b=MKD(a)
Print a, CVD(b)
Sleep


Differences from QB

  • None

See also