ieee754

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

BSD-3-Clause 17 个版本
安装
npm install ieee754
yarn add ieee754
pnpm add ieee754
bun add ieee754
README

ieee754 travis npm downloads javascript style guide

saucelabs

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.

license

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

版本列表
1.2.1 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
1.1.0 2013-12-28
1.0.0 2013-12-28