11 - 39 11 - 39
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
CVDMBF
Function
ConVert Double Microsoft Binary Format
• Converts a double precision real number of AD51H-BASIC, which was converted by the
MKD$ function, into the IEEE format double precision internal expression.
CVDMBF ( <character string expression> )
Syntax
character string expression
• • • •
Specify the character string that was converted from
a double precision real number by the MKD$
function.
Examples
A#=CVDMBF (MKD$(B#))
• • • •
Converts the double precision real number stored in
B# into an IEEE format double precision internal
expression and assigns it to A#.
Description
• The CVDMBF function converts a character string, which was converted from a double
precision real number on AD51H-BASIC by the MKD$ function, into the IEEE format
double precision internal expression.
• The internal representation of the AD51H-BASIC real number and that of the IEEE format
floating point real number are different. The CVDMBF function is used for conversion
between these two.
• Always specify a character string, which was converted from a double precision real
number by the MKD$ function, into <character string expression>.
Character string expressions that were converted by the MKI$, MKS$ or other function
cannot be converted correctly.
• Use double precision type ( #) for the variable to assign to, since the CVDMBF function
returns a double precision value.
• The values converted by the CVDMBF function are used for the data communication with a
system that uses the internal expression of the IEEE format double precision values.
REMARK
• The values obtained from the CVDMBF function have no meaning on AD51H-
BASIC.
• See the CVSMBF, MKDMBF$, and MKSMBF$ functions.