New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

long-math-js

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

long-math-js

arithmetic operation for long integer

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

long-math-js

arithmetic operation for long numbers

Introduction

In JavaScript, you can only store up to 53 bits as a number. Which means maximum number you can store in a safe integer format is 9007199254740991. (see Number.MAX_SAFE_INTEGER).

This is a problem if we want to do operations with extremely large numbers. For example, 66666666631813123131232132131231231233231 + 1832347623468324374387487417348371

Installation

Using npm

npm install -s long-math-js

Using yarn

yarn add long-math-js

Usage

const { math } = require('long-math-js');

math .addLong(x, y)

Where x and y is a number string

Functions

arithmetic:- addLong()

Keywords

large number

FAQs

Package last updated on 04 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts