Converts raw modbus integer to IEEE-754 Binary16 Floating Point format
npm install ieee754-binary16-modbusA small library that converts a modbus register (16-bit integer) to an IEEE-754 Binary16 Floating Point Number
``npm install ieee754-binary16-modbus --save`
``
var intToFloat16 = require("ieee754-binary16-modbus").intToFloat16;
var modbusRegisterValue = 0b0011110000000001;
var floatValue = intToFloat16(modbusRegisterValue);
// floatValue should equal 1.0009765625
`npm test``
In lieu of a formal styleguide, take care to maintain the existing coding style.
Add unit tests for any new or changed functionality. Lint and test your code.
- 1.0.0 Initial Release