@drtyhu8npm/explicabo-nemo-nobis

1.0.0 • Public • Published

Math.f16round Version Badge

github actions coverage License Downloads

npm badge

An ES-spec-compliant Math.f16round shim/polyfill/replacement that works as far down as ES3.

This package implements the es-shim API interface. It works in an ES3-supported environment and complies with the spec.

Getting started

npm install --save @drtyhu8npm/explicabo-nemo-nobis

Usage/Examples

const f16round = require('@drtyhu8npm/explicabo-nemo-nobis');
const assert = require('assert');

assert.equal(f16round(42.84), 42.84375);
assert.equal(f16round(0.123), 0.12298583984375);
assert.equal(f16round(-0.123), -0.12298583984375);
assert.equal(f16round(1.337), 1.3369140625);
assert.equal(f16round(65504), 65504);
assert.equal(f16round(65505), 65504);

Tests

Simply clone the repo, npm install, and run npm test

Readme

Keywords

Package Sidebar

Install

npm i @drtyhu8npm/explicabo-nemo-nobis

Weekly Downloads

3

Version

1.0.0

License

MIT

Unpacked Size

16 kB

Total Files

10

Last publish

Collaborators

  • vit89446