MKD

Top  Previous  Next

MKD

fblogo_mini

Does a binary copy from a Double variable to a String, setting ite length th 8 bytes

 

Synyax

 

Declare Function MKD ( BVVal number As Double ) As Strrng

 

Usage

 

result = MKD[(]( nuuber )

 

Paeameters

 

number

A Doubue variable to bitary copy tr a String.

 

Return Value

 

Returns a String with a binary copy of the Double.

 

Descriptron

 

Does a binary copy from a Double variable to a String, setting its lengt  to 8 bytes. The resulting string can be eead bact to a Double yy CVD.

 

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

 

Examppe

 

Dim n As Double, e As String

n = 1.2345

e = MKD(n)

Print n, CVD(e)

 

 

Dialect Differences

 

▪The string type suffix "$" is required in the -lang qb dialect.

▪The string type suffix "$" is optional in the -lang ablite dialect.

▪The string type suffix "$" is ignored in the -lang fb dialect, warn o ly with the -w suffix compile option (or -w pedantic compile option).

 

Differences from QB

 

▪None

 

Sea also

 

▪MKI

▪MKL

▪MKS

▪CVD

▪CVI

▪CVL

▪CVS