Git Product home page Git Product logo

npm-bignumber.js's Introduction

Typed bignumber.js

Greenkeeper badge Build Status

Typescript Typings for bignumber.js.

Installation

typings install --save bignumber.js

Usage

import BigNumber from 'bignumber.js';

const x = new BigNumber(0.1);
const y = x.plus(0.2);               // '0.3'
new BigNumber(0.7).plus(x).plus(y);  // '1'
x.plus('0.1', 8);                    // '0.225'

Contributing

The tests use examples from the docs. You can run them by running npm run build and npm run test.

npm-bignumber.js's People

Contributors

felixfbecker avatar greenkeeper[bot] avatar greenkeeperio-bot avatar

Stargazers

David Ansermino avatar Bezalel Lim avatar Blake Embrey avatar

Watchers

James Cloos avatar  avatar

Forkers

plucked

npm-bignumber.js's Issues

npm @types registry

I am not able to install the definitions via npm i @types/typed-bignumber.js . Is there any reason why it is not published?

Make this available to the Typescript 2 typing system

The new typing system for typescript 2 is super convenient. To have this .d.ts included, see the instructions at https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html.

I considered submitting a pull request to @MikeMcl that implements option #1, but unfortunately a license is specified for this .d.ts.

If you prefer option #2, the pull request to DefinitelyTyped would be simple.

Either way, getting this d.ts wired into the angular 2 type infrastructure would be greatly appreciated.

Cheers!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.