1.4.2 • Published 5 years ago

abstract-numerical-unit v1.4.2

Weekly downloads
7
License
BSD-3-Clause
Repository
github
Last release
5 years ago

Represent Numbers as a Stack

What do you get by putting the the mantissa at the head of a stack of digits?

A very natural means of converting numerical representations into natural language.

Install

npm install --save integer-to-cardinal-english

NOTE: abstract-numerical-unit has no production dependencies.

Usage

const AbstractNumericalUnit = require('abstract-numerical-unit');

/* 
 * Returns an AbstractNumericalUnit representing 
 * 1 times ten raised to the power of 1,
 * with a pointer to 2 times ten raised to teh power of -1
 * which in turn has a pointer to 3 times ten raised to the power of -2 
 */
AbstractNumericalUnit.fromNumerical("10.23")

Tests

Using the Jasmine

npm test

Motivation & Related Work

Number Reference is an online encyclopedia of calculations that relies heavily on this and related packages.

License

Nice and Brief: BSD-3-Clause

1.4.2

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.3.3

5 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.2.0

5 years ago

1.3.0

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago