JSPM

Found 57 results for rounding

add

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

  • v2.0.6
  • 89.55
  • Published

clean-pslg

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

  • v1.1.2
  • 68.93
  • Published

percent-round

Calculate percentages from a list of values.

  • v2.3.1
  • 64.98
  • 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
  • 63.94
  • Published

next-pow-2

Rounds an integer up to a power of 2

  • v1.0.0
  • 60.96
  • Published

more-rounding

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

  • v4.2.2
  • 49.73
  • Published

stround

Rounding methods for exact numbers using strings.

  • v0.3.1
  • 45.53
  • Published

php-round

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

  • v1.0.2
  • 44.21
  • Published

expected-round

This has not been performance tested.

  • v0.0.4
  • 42.61
  • Published

bankers-round

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

  • v1.0.7
  • 42.34
  • 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.30
  • Published

avg

calculate rounded averages

  • v0.5.0
  • 25.21
  • Published

round-decimal

Decimal rounding with ULP.

  • v0.1.0
  • 17.62
  • 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
    • 16.85
    • Published

    complete-round

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

    • v1.4.3
    • 16.23
    • Published

    symmetric-round

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

    • v1.0.5
    • 15.70
    • 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.65
    • Published

    ngx-fixed-decimal

    Angular pipe for round a number to N decimal places

    • v1.0.0
    • 15.41
    • Published

    rounding-decimal

    Accurate Rounding up to 16n decimal places

      • v1.0.5
      • 14.69
      • 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
        • 14.31
        • 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
        • 13.66
        • 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
        • 13.23
        • Published

        sigfig

        Round a number to n significant figures.

        • v1.0.2
        • 12.48
        • Published

        pround

        A simple package for rounding numbers by EPSILON prop

          • v1.0.0
          • 11.49
          • Published

          rounding-values

          Rounding the numbers in object and objects in array.

          • v1.0.3
          • 10.50
          • Published

          big-round

          Custom rounding behaviour for BigInt arithmetic

          • v2.0.0
          • 10.32
          • Published

          fix-floats

          A function which fixes floating-point rounding errors in JavaScript

          • v1.1.0
          • 9.81
          • Published

          @lvlte/modf

          Get the integral and fractional parts of a given number.

          • v1.1.0
          • 9.67
          • Published

          clean-pslg-3d

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

          • v0.1.2
          • 9.56
          • Published

          date-floor

          Like Math.floor but for Date objects

          • v0.0.4
          • 8.91
          • Published

          bias-rounding

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

          • v0.1.2
          • 7.16
          • Published

          numberparser

          A simple number formatting utility for Javascript and Node.js

          • v0.0.6
          • 7.16
          • 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.06
            • Published

            round-to-step

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

            • v1.0.1
            • 7.04
            • Published

            spiffy-round

            A spiffy rounder for numbers

            • v1.0.2
            • 5.87
            • Published

            number-to-fixed

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

            • v1.0.0
            • 5.83
            • Published

            rounding

            Simple utilities for rounding and converting storage units

              • v1.0.0
              • 4.55
              • Published

              round-time

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

              • v1.0.0
              • 4.52
              • Published

              money-math-recipes

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

              • v2.0.4
              • 4.41
              • Published

              @drag13/round-to

              Small function that rounds number with selected precision

              • v0.10.4
              • 4.41
              • Published

              grumpify

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

                • v0.1.0
                • 2.88
                • 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
                • 2.88
                • Published

                jorts

                Number short-scaling for JavaScript

                • v0.0.11
                • 2.66
                • 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.60
                • Published