readFloat
[ Function ]
public readFloat(): number;
Reads four bytes and interprets them as floating point number with an accuracy of seven significant digits. The read pointer is advanced by four bytes.
Parameter
Name | Type | Description |
---|---|---|
- | - | - |
Return value
Type | Description |
---|---|
The read float value |
Sample - JavaScript
var reader = new TcHmi.Base64BinaryReader('2g9JQA==');
var result1 = reader.readFloat(); // 3.141592502593994
Available from version 1.10 |