Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

fround

arthurvr15MIT1.0.1

A ponyfill for ES6 Math.fround

math, es6, es2015, fround, Float32Array, float

readme

fround Build Status

A ponyfill for ES6 Math.fround

Ponyfill: a polyfill that does not overwrite the native method

Install

$ npm install --save fround

Usage

var fround = require('fround');

fround(0);     // 0
fround(1);     // 1
fround(1.337); // 1.3370000123977661
fround(1.5);   // 1.5
fround(NaN);   // NaN

License

MIT © Arthur Verschaeve