Convert a string containing a 80-bit floating point number to a float value.
XSharp.RT (in XSharp.RT.dll) Version: 2.16
Syntax Request Example
cFloat AS STRING
) AS FLOAT
public static Float Bin2F(
- Type: String
An 80-bit floating point number represented as a string — least significant byte first.
Bin2F() is a conversion function that converts a binary string into a 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 F2Bin().
This example decrypts a converted floating point numeric back to its original format:
2LOCAL cEncrypt AS STRING
3LOCAL fDecrypt AS FLOAT
4cEncrypt := F2Bin(12365789.96587)
5fDecrypt := Bin2F(cEncrypt)