Int16ToFloat

Combine two 16-bit signed integers into a float.

Available in read and write scripts. Part of the virtual tag expression reference.

Combines two 16-bit signed integers — a low and a high word — into a float.

Int16ToFloat(low: number, high: number): number;

Parameters

  • low — the low 16-bit word.
  • high — the high 16-bit word.

Return value

The float value.

Example

// Combine two registers into one float
Int16ToFloat(value("Device/Value low"), value("Device/Value high"));