JSPM

Found 62 results for rounding

add

A cross-browser, numerically stable algorithm to add floats accurately

  • v2.0.6
  • 88.69
  • Published

clean-pslg

Remove self intersections, t-junctions and duplicate edges/vertices from a planar straight line graph

  • v1.1.2
  • 70.21
  • Published

percent-round

Calculate percentages from a list of values.

  • v2.3.1
  • 65.86
  • Published

exact-math

The exact-math is a set of methods for addition, subtraction, multiplication, division, rounding, ceiling, flooring and powering calculations. It can be used with big number as it handles the floating point problem.

  • v2.2.3
  • 65.66
  • Published

next-pow-2

Rounds an integer up to a power of 2

  • v1.0.0
  • 63.75
  • Published

php-round

A javascript-based library containing functions that match built in `round` function in PHP

  • v1.0.2
  • 46.69
  • Published

more-rounding

A library that offers more number rounding options for JavaScript and TypeScript

  • v4.2.2
  • 46.09
  • Published

bankers-round

Bankers round function to reduce the accumulated error written in TS.

  • v1.0.7
  • 43.05
  • Published

expected-round

This has not been performance tested.

  • v0.0.4
  • 42.25
  • Published

stround

Rounding methods for exact numbers using strings.

  • v0.3.1
  • 38.40
  • Published

@themainstack/money-utils

Lightweight, precise monetary calculation utilities using decimal.js

    • v1.2.1
    • 32.25
    • Published

    @upendra.manike/precise-math

    Decimal-safe math for JavaScript/TypeScript - accurate arithmetic (add, sub, mul, div, round) without floating-point errors. Plus factorial, prime numbers, fibonacci, GCD, LCM, number conversions, perfect numbers, Armstrong numbers, and more. Perfect for

      • v1.0.5
      • 26.76
      • Published

      @parischap/conversions

      A functional library to replace partially the native Intl API

      • v0.8.0
      • 22.90
      • Published

      round-decimal

      Decimal rounding with ULP.

      • v0.1.0
      • 20.10
      • Published

      precise_to_n_fractionals

      Precise to N fractional digits without rounding the Number. 99.9999 => precise_to_n_fractionals(99.9999,3) => 99.999

      • v1.0.8
      • 18.84
      • Published

      @eriveltonsilva/currency.js

      A lightweight and reliable JavaScript library for precise currency operations, built to safely handle monetary values without floating point errors.

      • v0.1.4
      • 18.63
      • Published

      @lvlte/ulp

      Compute the unit in last place of a given IEEE-754 64-bit number

      • v1.1.1
      • 18.20
      • Published

      avg

      calculate rounded averages

      • v0.5.0
      • 18.08
      • Published

      @lvlte/modf

      Get the integral and fractional parts of a given number.

      • v2.0.1
      • 17.16
      • Published

      sigfig

      Round a number to n significant figures.

      • v1.0.2
      • 17.06
      • Published

      @drag13/round-to

      Small function that rounds number with selected precision

      • v0.10.4
      • 16.23
      • Published

      clean-pslg-3d

      Remove self intersections, t-junctions and duplicate edges/vertices from a planar straight line graph

      • v0.1.2
      • 15.45
      • Published

      @writetome51/get-cautiously-rounded

      a rounding function that may give more accurate rounding results than the method taught in school. It avoids cumulative errors

      • v2.0.0
      • 15.41
      • Published

      date-floor

      Like Math.floor but for Date objects

      • v0.0.4
      • 15.23
      • Published

      pricing-core

      PricingCore - A high-precision, currency-agnostic pricing engine with BigInt precision, multiple markup strategies, multiple rounding strategies, and ISO 4217 currency support via currency-codes package

      • v3.0.2
      • 15.02
      • Published

      smart-handlebars

      'smart-handlebars' is a powerful Handlebars templating extension that enhances your frontend development capabilities. It extends the standard Handlebars functionality with a suite of additional functions, making it a versatile tool for web developers. Wi

        • v1.0.7
        • 14.38
        • Published

        numberparser

        A simple number formatting utility for Javascript and Node.js

        • v0.0.6
        • 12.87
        • Published

        number-to-fixed

        formats a number using fixed-point notation and returns a number

        • v1.0.0
        • 12.75
        • Published

        fraction-utils

        A utility package for converting decimal numbers to fractions, simplifying fractions, validating fraction strings, and converting improper fractions to mixed numbers.

        • v1.0.4
        • 12.75
        • Published

        ngx-fixed-decimal

        Angular pipe for round a number to N decimal places

        • v1.0.0
        • 12.65
        • Published

        pround

        A simple package for rounding numbers by EPSILON prop

          • v1.0.0
          • 12.42
          • Published

          big-round

          Custom rounding behaviour for BigInt arithmetic

          • v2.0.0
          • 12.42
          • Published

          jorts

          Number short-scaling for JavaScript

          • v0.0.11
          • 12.04
          • Published

          rounding

          Simple utilities for rounding and converting storage units

            • v1.0.0
            • 12.04
            • Published

            complete-round

            A function to offer more rounding options for numbers in JavaScript and TypeScript

            • v1.4.3
            • 11.65
            • Published

            fixdecimal

            The fixdecimal package provides an extended rounding and decimal digit fixing solution in JavaScript.This Package allows to handle floating number operations precisely and effiently.

            • v1.0.2
            • 10.27
            • Published

            money-math-recipes

            A simple and tiny library with no dependencies for monetary operations and recipes

            • v2.0.4
            • 10.18
            • Published

            fix-floats

            A function which fixes floating-point rounding errors in JavaScript

            • v1.1.0
            • 9.86
            • Published

            @writetome51/get-fixed-float

            Returns number with fixed number of digits after the decimal. It also rounds cautiously to avoid cumulative errors

              • v2.0.1
              • 9.52
              • Published

              rounding-decimal

              Accurate Rounding up to 16n decimal places

                • v1.0.5
                • 9.08
                • Published

                rounding-values

                Rounding the numbers in object and objects in array.

                • v1.0.3
                • 9.08
                • Published

                round-price

                Utility functions for applying custom rounding rules to prices, where decimal parts are rounded to either .5 or the next whole number.

                  • v1.0.1
                  • 9.02
                  • Published

                  symmetric-round

                  A tiny utility function to perform symmetric rounding (a.k.a. "commercial rounding") on a number.

                  • v1.0.5
                  • 8.15
                  • Published

                  spiffy-round

                  A spiffy rounder for numbers

                  • v1.0.2
                  • 7.01
                  • Published

                  bias-rounding

                  Round a number to the floor or ceiling, based on your own set bias

                  • v0.1.2
                  • 5.85
                  • Published

                  grumpify

                  Maths expression eval for boring stuff like money, accounting and such

                    • v0.1.0
                    • 4.93
                    • Published

                    round-time

                    A small library of functions for rounding minutes, seconds, and milliseconds by intervals.

                    • v1.0.0
                    • 4.43
                    • Published

                    round-to-step

                    Round numbers to a step. Accepts an interval and optional offset.

                    • v1.0.1
                    • 4.42
                    • Published

                    @sifxt/math-utils

                    A comprehensive TypeScript math utilities library with type-safe operations, statistical functions, and interpolation tools

                    • v1.0.0
                    • 0.00
                    • Published