# ieee754-binary16-modbus

> Converts raw modbus integer to IEEE-754 Binary16 Floating Point format

Latest version **1.1.0** (published 2018-02-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install ieee754-binary16-modbus
pnpm add ieee754-binary16-modbus
yarn add ieee754-binary16-modbus
bun add ieee754-binary16-modbus
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2018-02-01 |
| First published | 2018-01-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Patrick McDonagh |
| Maintainers | patrickjmcd |
| Keywords | modbus, binary16, float16, ieee754 |

## Links

- npm: https://www.npmjs.com/package/ieee754-binary16-modbus
- Repository: https://github.com/patrickjmcd/ieee754-binary16-modbus
- Homepage: https://github.com/patrickjmcd/ieee754-binary16-modbus#readme
- Issues: https://github.com/patrickjmcd/ieee754-binary16-modbus/issues
- npm.io page: https://npm.io/package/ieee754-binary16-modbus

## Recent versions

- 1.1.0 (latest) — 2018-02-01
- 1.0.0 — 2018-01-09

## README

# IEEE Binary16 Modbus

A small library that converts a modbus register (16-bit integer) to an IEEE-754 Binary16 Floating Point Number

## Installation

```npm install ieee754-binary16-modbus --save```

## Usage

```
var intToFloat16 = require("ieee754-binary16-modbus").intToFloat16;
var modbusRegisterValue = 0b0011110000000001;
var floatValue = intToFloat16(modbusRegisterValue);
// floatValue should equal 1.0009765625
```

## Tests

```npm test```

## Contributing

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.

## Release History

-   1.0.0 Initial Release

---
_Source: https://npm.io/package/ieee754-binary16-modbus · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
