# huge-num

> A npm package to apply math operations on huge numbers

Latest version **1.3.3** (published 2021-11-03) · ISC license · 0 weekly downloads

## Install

```sh
npm install huge-num
pnpm add huge-num
yarn add huge-num
bun add huge-num
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.3.3 |
| Published | 2021-11-03 |
| First published | 2021-10-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | em_it |
| Maintainers | em_it |
| Keywords | emit, em-it, em_it, math, huge, numbers, big, big-num, huge-num |

## Links

- npm: https://www.npmjs.com/package/huge-num
- Repository: https://github.com/Em-IT/huge-num
- Homepage: https://em-it.github.io/huge-num/
- Issues: https://github.com/Em-IT/huge-num/issues
- npm.io page: https://npm.io/package/huge-num

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 1.3.3 (latest) — 2021-11-03
- 1.3.2 — 2021-11-03
- 1.3.1 — 2021-11-03
- 1.3.0 — 2021-11-02
- 1.2.2 — 2021-10-30
- 1.2.1 — 2021-10-30
- 1.2.0 — 2021-10-30
- 1.1.2 — 2021-10-28
- 1.1.1 — 2021-10-28
- 1.1.0 — 2021-10-28
- 1.0.0 — 2021-10-28

## README

# Huge Numbers
A npm package to apply math 🔢 operations on huge numbers (unlimited length 😉)

[![Version](https://img.shields.io/npm/v/huge-num.svg)](https://www.npmjs.com/package/huge-num)
[![Downloads](https://img.shields.io/npm/dm/huge-num.svg)](https://www.npmjs.com/package/huge-num)
[![License](https://img.shields.io/github/license/em-it/huge-num.svg)](https://github.com/em-it/huge-num/blob/master/LICENSE)
[![Coverage Status](https://coveralls.io/repos/github/Em-IT/huge-num/badge.svg?branch=master)](https://coveralls.io/github/Em-IT/huge-num?branch=master)

## Features:
- Numbers size limit:
  - unlimited
- Math operators:
  - Sum (+)
  <!-- - Minus (-) -->
  - Multiply (×)
  <!-- - Devide (÷) -->

## Usage:
HugeNum can be used in node.js

Install HugeNum using [npm](https://www.npmjs.com/package/huge-num):

    npm install huge-num

Then you can define a huge number using a string
```js
import HugeNum from 'huge-num';

const NUMBER_1 = "12213345674890";
const NUMBER_2 = "564564574982348";

let n1 = HugeNum(NUMBER_1);
let n2 = HugeNum(NUMBER_2);
```

Then you can use the operators on a huge number

### `huge_number_1.sum(huge_number_2)`

```js
const summation = n1.sum(NUMBER_2);
console.log(NUMBER_1 + ' + ' + NUMBER_2 + '=', summation);
// result -> 12213345674890 + 564564574982348= 576777920657238
```

### `huge_number_1.multiply(huge_number_2)`

```js
const multiply = n1.multiply(NUMBER_2);
console.log(NUMBER_1 + ' *+* ' + NUMBER_2 + '=', multiply);
// result -> 12213345674890 * 564564574982348= 6895222310056771043896841720
```

<!-- ### Method Chaining
HugeNum operations return HugeNums, which allows you to chain methods.
for example: -->


## Documentation:
<!-- - [Live Example](https://netherland-explorer.netlify.app/) -->
- [Github Official Page](https://em-it.github.io/huge-num/)
- [Wiki of Technical Documents](https://github.com/Em-IT/huge-num/wiki)
- [NPM Package](https://www.npmjs.com/package/huge-num)


## Contributors
To contribute, just fork the project, make some changes, and submit a pull request. 


## License
This project is public domain. For more details, read about the [Unlicense](http://unlicense.org/).


## Developer:
* **Emad Armoun**
* [www.EmadArmoun.com](http://www.EmadArmoun.com)
* [Emad.Armoun@gmail.com](Emad.Armoun@gmail.com)
* [LinkedIn profile](https://www.linkedin.com/in/em-it/)
<!-- ![](/src/assets/images/me.jpg) -->

---
_Source: https://npm.io/package/huge-num · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
