https://github.com/javiercejudo/pow-arbitrary-precision
pow abstraction to extend linear-arbitrary-precision
https://github.com/javiercejudo/pow-arbitrary-precision
Last synced: 3 months ago
JSON representation
pow abstraction to extend linear-arbitrary-precision
- Host: GitHub
- URL: https://github.com/javiercejudo/pow-arbitrary-precision
- Owner: javiercejudo
- License: mit
- Created: 2015-07-18T14:29:31.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-01-27T08:42:52.000Z (over 8 years ago)
- Last Synced: 2025-03-09T03:17:23.190Z (3 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/pow-arbitrary-precision
- Size: 16.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pow-arbitrary-precision
[](https://travis-ci.org/javiercejudo/pow-arbitrary-precision)
[](https://coveralls.io/r/javiercejudo/pow-arbitrary-precision?branch=master)
[](https://codeclimate.com/github/javiercejudo/pow-arbitrary-precision)pow abstraction to extend [linear-arbitrary-precision](https://github.com/javiercejudo/linear-arbitrary-precision/)
## Install
npm i pow-arbitrary-precision
## Adapters
- [[adapter]](https://github.com/javiercejudo/floating-adapter) [[lib]](https://github.com/javiercejudo/floating) floating
## Usage
```js
var adapter = require('floating-adapter');var Decimal = require('pow-arbitrary-precision')(require('linear-arbitrary-precision')(adapter));
new Decimal('2').pow(new Decimal('3')).valueOf(); // => 8
```See [spec](test/spec.js).