npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

extendnumber

v1.0.3

Published

Use it when you want to perform integer and real number

Readme

ExtendNumber.js


ExtendNumber.js

Use it when you want to perform integer and real number arithmetic. The decimal error(IEEE 754) problem has been removed. You can ceil, round, floor perform using this library. You can perform integer and real number with add, sub, multiple, divider . You can use this library IE11, Chrome, Firefox, Edge. You can calculate up to 6 points after the decimal point.


HOW TO IMPORT

import EN from 'extendnumber'

HOW TO USE

EN.add(value1,value2)
EN.sub(value1,value2)
EN.div(value1,value2)
EN.mul(value1,value2)
EN.floor(value) / EN.floor(value,decimal point)
EN.round(value) / EN.round(value,decimal point)
EN.ceil(value) / EN.ceil(value,decimal point)

Before -> After ExtendNumber.js

EN.floor/ceil/round(value,pointPosition)

  • Math.floor(1.33) => 1 / EN.floor(1.33,1) => 1.3, EN.floor(1.33) => 1
  • Math.ceil(1.33) => 2 / EN.ceil(1.33,1) => 1.4, EN.ceil(1.3) => 2
  • Math.round(1.53) => 2 / EN.round(1.55,1) => 1.6, EN.round(1.55) => 2

EN.add/sub/mul/div(value1, value2)

  • 1.35 + 0.1 => 1.450000000002 / EN.add(1.35+0.1) => 1.45 / EN.add(1.2,1) => 2.2
  • 1.2 - 0.1 => 1.09999999999 / EN.sub(1.2,0.1) => 1.1 / EN.sub(1.2,1) => 0.2
  • 1.35 * 1.1 => 1.4850000000003 / EN.mul(1.35,1.1) => 1.485
  • 4.3 / 1.1 => 3.909090909090987 / EN.div(4.3,1.1) => 3.9090909090909

IF YOU WANT CONTRIBUTE THIS LIBRARY

JOIN https://github.com/ryuhojin/ExtendNumber.js

ExtendNumber.js


ExtendNumber.js

ExtendNumberJS 라이브러리를 통해서 정수와 실수의 연산을 정확하게 해보세요. 웹환경에서 부동소수점 문제를 정확하게 해결한 라이브러리입니다. 해당 라이브러리는 올림, 내림, 반올림 연산을 정수를 포함한 실수에서 사용할 수 있습니다. 해당 라이브러리를 통해서 정수 및 실수의 덧셈, 뺄셈, 곱셈, 나눗셈 연산을 정확하게 수행하세요. 해당 라이브러리는 IE11, Edge, Chrome, FireFox 까지 크로스 브라우징을 지원합니다.


내 프로젝트에 추가하기

import EN from 'extendnumber'

사용법

EN.add(value1,value2)
EN.sub(value1,value2)
EN.div(value1,value2)
EN.mul(value1,value2)
EN.floor(value) / EN.floor(value,decimal point)
EN.round(value) / EN.round(value,decimal point)
EN.ceil(value) / EN.ceil(value,decimal point)

Before -> After ExtendNumber.js

EN.floor/ceil/round(value,pointPosition)

  • Math.floor(1.33) => 1 / EN.floor(1.33,1) => 1.3, EN.floor(1.33) => 1
  • Math.ceil(1.33) => 2 / EN.ceil(1.33,1) => 1.4, EN.ceil(1.3) => 2
  • Math.round(1.53) => 2 / EN.round(1.55,1) => 1.6, EN.round(1.55) => 2

EN.add/sub/mul/div(value1, value2)

  • 1.35 + 0.1 => 1.450000000002 / EN.add(1.35+0.1) => 1.45 / EN.add(1.2,1) => 2.2
  • 1.2 - 0.1 => 1.09999999999 / EN.sub(1.2,0.1) => 1.1 / EN.sub(1.2,1) => 0.2
  • 1.35 * 1.1 => 1.4850000000003 / EN.mul(1.35,1.1) => 1.485
  • 4.3 / 1.1 => 3.909090909090987 / EN.div(4.3,1.1) => 3.9090909090909

라이브러리를 발전시켜 나갈 분을 찾습니다.

https://github.com/ryuhojin/ExtendNumber.js