# ieee754

> Read/write IEEE754 floating point numbers from/to a Buffer or array-like object

Latest version **1.2.1** (published 2020-10-27) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install ieee754
pnpm add ieee754
yarn add ieee754
bun add ieee754
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.1 |
| Published | 2020-10-27 |
| First published | 2013-12-28 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 122 |
| Author | Feross Aboukhadijeh |
| Maintainers | feross |
| Keywords | IEEE 754, buffer, convert, floating point, ieee754 |

## Links

- npm: https://www.npmjs.com/package/ieee754
- Repository: https://github.com/feross/ieee754
- Homepage: https://github.com/feross/ieee754#readme
- Issues: https://github.com/feross/ieee754/issues
- Funding: https://github.com/sponsors/feross
- npm.io page: https://npm.io/package/ieee754

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [jwt-simple](https://npm.io/package/jwt-simple.md) — 259.5K weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads

## Recent versions

- 1.2.1 (latest) — 2020-10-27
- 1.2.0 — 2020-10-27
- 1.1.13 — 2019-03-26
- 1.1.12 — 2018-06-09
- 1.1.11 — 2018-03-24
- 1.1.10 — 2018-03-18
- 1.1.9 — 2018-03-17
- 1.1.8 — 2016-10-03
- 1.1.7 — 2016-10-03
- 1.1.6 — 2015-06-11
- 1.1.5 — 2015-05-05
- 1.1.4 — 2014-09-03
- 1.1.3 — 2014-02-16
- 1.1.2 — 2014-01-29
- 1.1.1 — 2013-12-28
- … 2 more at https://npm.io/package/ieee754/versions

## README

# ieee754 [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]

[travis-image]: https://img.shields.io/travis/feross/ieee754/master.svg
[travis-url]: https://travis-ci.org/feross/ieee754
[npm-image]: https://img.shields.io/npm/v/ieee754.svg
[npm-url]: https://npmjs.org/package/ieee754
[downloads-image]: https://img.shields.io/npm/dm/ieee754.svg
[downloads-url]: https://npmjs.org/package/ieee754
[standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg
[standard-url]: https://standardjs.com

[![saucelabs][saucelabs-image]][saucelabs-url]

[saucelabs-image]: https://saucelabs.com/browser-matrix/ieee754.svg
[saucelabs-url]: https://saucelabs.com/u/ieee754

### Read/write IEEE754 floating point numbers from/to a Buffer or array-like object.

## install

```
npm install ieee754
```

## methods

`var ieee754 = require('ieee754')`

The `ieee754` object has the following functions:

```
ieee754.read = function (buffer, offset, isLE, mLen, nBytes)
ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes)
```

The arguments mean the following:

- buffer = the buffer
- offset = offset into the buffer
- value = value to set (only for `write`)
- isLe = is little endian?
- mLen = mantissa length
- nBytes = number of bytes

## what is ieee754?

The IEEE Standard for Floating-Point Arithmetic (IEEE 754) is a technical standard for floating-point computation. [Read more](http://en.wikipedia.org/wiki/IEEE_floating_point).

## license

BSD 3 Clause. Copyright (c) 2008, Fair Oaks Labs, Inc.

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