Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2   9.3    Statistic  


Reads a float value.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
BinaryFile 7.3 Yes Yes Yes Yes Yes
MBS( "BinaryFile.ReadFloat"; BinaryFileRef { ; Bits } )   More


Parameter Description Example value
BinaryFileRef The reference number for the open file. $FH
Bits Optional
The bit width of the value.
Pass 32 for a 32-bit floating point number (single) or 64 for a 64-bit floating point number (double).
Default is 32.


Returns value or error.


Reads a float value.
See also BinaryFile.WriteFloat for writing.


Read floating point values:

Set Variable [ $fh ; Value: MBS( "BinaryFile.Open"; "/Users/cs/Desktop/output.dat" ) ]
Set Variable [ $v1 ; Value: MBS( "BinaryFile.ReadFloat"; $fh; 32) ]
Set Variable [ $v1 ; Value: MBS( "BinaryFile.ReadFloat"; $fh; 64) ]
Set Variable [ $r ; Value: MBS( "BinaryFile.Close"; $fh) ]

See also

Created 12nd June 2017, last changed 12nd June 2017

BinaryFile.ReadContainer   -   BinaryFile.ReadHex

Feedback: Report problem or ask question.

MBS FileMaker tutorial videos