Convert a string containing a 32-bit floating point number to a Real8 value.
XSharp.Core (in XSharp.Core.dll) Version: 2.7
Syntax Request Example
cFloat AS STRING
) AS REAL8
public static double Bin2Real8(
- Type: String
A 32-bit floating point number represented as a string — least significant byte first. Only the first 8 bytes are used by the function; all others are ignored.
Bin2Real8() is a conversion function that converts the first 8 bytes of a string to a 32-bit floating point number. Typical applications include reading foreign file types in their native format then saving, reading, decrypting, and transmitting numeric data in their compressed binary form instead of in strings.
Its inverse is Real82Bin().
This example shows that Real82Bin() is the inverse of Bin2Real8():
1cString := Real82Bin(1245633.25)