JSPM

fround

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 9
  • Score
    100M100P100Q33071F
  • License MIT

A ponyfill for ES6 Math.fround

Package Exports

  • fround

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (fround) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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