Function Bin2f() Foundation

Converts a 64 bit IEEE floating point number to a numeric value.

Syntax
Bin2f( <cFloat64> ) --> nNumeric
Parameters
<cFloat64>
<cFloat64> is a character string whose first eight bytes (characters) are converted to a 64 bit IEEE floating point number.
Return

The conversion function Bin2f() returns a numeric value.

Description

Bin2f() converts binary numbers within character strings to their numeric values. The counterpart of Bin2f() is the function F2bin() which converts a floating point number to an eight byte character string.

The value range of Bin2f() or F2bin() is that for a numerical value. Since the number of decimal places is not stored by F2Bin(), Bin2f() uses the current setting of SET DECIMALS for this. Similar conversion functions are Bin2i(), Bin2l() and Bin2w().

Bin2f() can be used in connection with DllCall() and low level API functions which require a 64 bit floating point number as a parameter.

Examples
// Bin2f() is used just like Bin2L(). The difference 
// lies only in the value range. 
Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.