JSPM

Found 57 results for rounding

add

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

  • v2.0.6
  • 88.89
  • Published

clean-pslg

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

  • v1.1.2
  • 69.47
  • 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.92
  • Published

percent-round

Calculate percentages from a list of values.

  • v2.3.1
  • 64.43
  • Published

next-pow-2

Rounds an integer up to a power of 2

  • v1.0.0
  • 61.26
  • Published

more-rounding

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

  • v4.2.2
  • 50.87
  • Published

stround

Rounding methods for exact numbers using strings.

  • v0.3.1
  • 45.60
  • Published

php-round

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

  • v1.0.2
  • 44.78
  • Published

expected-round

This has not been performance tested.

  • v0.0.4
  • 41.93
  • Published

bankers-round

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

  • v1.0.7
  • 41.44
  • 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
  • 37.10
  • Published

avg

calculate rounded averages

  • v0.5.0
  • 23.94
  • 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
    • 17.20
    • Published

    symmetric-round

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

    • v1.0.5
    • 15.79
    • Published

    sigfig

    Round a number to n significant figures.

    • v1.0.2
    • 15.51
    • Published

    round-decimal

    Decimal rounding with ULP.

    • v0.1.0
    • 14.94
    • Published

    ngx-fixed-decimal

    Angular pipe for round a number to N decimal places

    • v1.0.0
    • 13.60
    • 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
    • 13.06
    • Published

    @drag13/round-to

    Small function that rounds number with selected precision

    • v0.10.4
    • 11.45
    • 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
      • 10.89
      • Published

      rounding-decimal

      Accurate Rounding up to 16n decimal places

        • v1.0.5
        • 10.80
        • Published

        date-floor

        Like Math.floor but for Date objects

        • v0.0.4
        • 10.77
        • 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
        • 10.64
        • Published

        pround

        A simple package for rounding numbers by EPSILON prop

          • v1.0.0
          • 10.41
          • Published

          clean-pslg-3d

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

          • v0.1.2
          • 10.28
          • Published

          @lvlte/modf

          Get the integral and fractional parts of a given number.

          • v1.1.0
          • 9.56
          • Published

          rounding

          Simple utilities for rounding and converting storage units

            • v1.0.0
            • 9.16
            • Published

            rounding-values

            Rounding the numbers in object and objects in array.

            • v1.0.3
            • 8.41
            • 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
            • 8.28
            • Published

            numberparser

            A simple number formatting utility for Javascript and Node.js

            • v0.0.6
            • 8.13
            • 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
              • 7.96
              • Published

              fix-floats

              A function which fixes floating-point rounding errors in JavaScript

              • v1.1.0
              • 7.37
              • Published

              bias-rounding

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

              • v0.1.2
              • 7.13
              • Published

              complete-round

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

              • v1.4.3
              • 6.98
              • 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
              • 4.97
              • Published

              spiffy-round

              A spiffy rounder for numbers

              • v1.0.2
              • 4.48
              • Published

              money-math-recipes

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

              • v2.0.4
              • 4.43
              • Published

              grumpify

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

                • v0.1.0
                • 2.90
                • Published

                jorts

                Number short-scaling for JavaScript

                • v0.0.11
                • 2.68
                • Published

                round-time

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

                • v1.0.0
                • 2.63
                • Published

                big-round

                Custom rounding behaviour for BigInt arithmetic

                • v2.0.0
                • 2.62
                • 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
                • 2.62
                • Published

                number-to-fixed

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

                • v1.0.0
                • 2.59
                • Published

                round-to-step

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

                • v1.0.1
                • 0.00
                • Published