1.1.0 • Published 8 years ago

linear-preset-to-number v1.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

linear-preset-to-number

Build Status Coverage Status Code Climate

Ensures a linear preset has numbers

Install

npm i linear-preset-to-number

Usage

var Decimal = require('linear-arbitrary-precision')(require('floating-adapter'));
var presetToNumber = require('linear-preset-to-number');

presetToNumber([
  [new Decimal('0'), new Decimal('1')],
  [new Decimal('32'), new Decimal('33.8')]
]);
// => [[0, 1], [32, 33.8]]

For the opposite behaviour, check linear-preset-to-decimal.

Related projects