to-decimal-arbitrary-precision

1.0.2 • Public • Published

to-decimal

Build Status Coverage Status Code Climate

Ensures a number is represented as a decimal

Install

npm i to-decimal-arbitrary-precision

Usage

var Decimal = require('linear-arbitrary-precision')(require('floating-adapter'));
var toDecimal = require('to-decimal-arbitrary-precision')(Decimal);

toDecimal(32); // => new Decimal('32')

Related projects

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    48
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    48
  • 1.0.0
    1

Package Sidebar

Install

npm i to-decimal-arbitrary-precision

Weekly Downloads

49

Version

1.0.2

License

MIT

Last publish

Collaborators

  • javiercejudo