@hutechwebsite/fugit-nulla-doloremque-voluptates
v1.0.0
Published
[![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url]
Downloads
4
Maintainers
Keywords
Readme
Math.f16round
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 @hutechwebsite/fugit-nulla-doloremque-voluptates
Usage/Examples
const f16round = require('@hutechwebsite/fugit-nulla-doloremque-voluptates');
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