RegisterConverterToInt16 Method (Single) |
Cast an 32-bit floating point value to a tuple of 16-bit register values
Namespace:
FieldTalk.Modbus.Slave
Assembly:
FieldTalk.Modbus.Slave (in FieldTalk.Modbus.Slave.dll) Version: 2.11.0-eval+eb1ecbe71c969eff5d7c05d58da16dade0474678
Syntaxpublic static short[] ToInt16(
float floatVal
)
Public Shared Function ToInt16 (
floatVal As Single
) As Short()
public:
static array<short>^ ToInt16(
float floatVal
)
Parameters
- floatVal
- Type: SystemSingle
Value to be converted
Return Value
Type:
Int16 Array with 2 16-bit register values
See Also