writeDouble
[ Function ]
public writeDouble(value: number): this;Encodes a floating point number with an accuracy of 16 significant digits in eight bytes and appends them to the data.
Parameter
Name | Type | Description |
|---|---|---|
value | The value to be written |
Return value
Type | Description |
|---|---|
This method returns its parent object to allow concatenation of method calls. |
Sample - JavaScript
var writer = new TcHmi.Base64BinaryWriter();
var result1 = writer.writeDouble(3.141592653589793).getEncodedString(); // 'GC1EVPshCUA='![]() | Available from version 1.10 |
