$npx skillfedfor your agent

rounders

round-function equivalents with different rounding-modes

Worth itPyPI MathematicsReleased Jun 2024149.0K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — rounders-0.2.0-py3-none-any.whl
v0.2.0 · released 2024-06-09 · Python >=3.8

Yes. The package has zero dependencies, low install friction, active maintenance, permissive licensing, and fills a genuine gap in Python's standard library. It's useful for anyone working with financial data, scientific calculations, or code that must match specific rounding semantics. No known vulnerabilities.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.8 or later.
  • Low friction: pure Python wheel with no runtime dependencies.
  • Actively maintained as of June 2024, though infrequently updated (last commit 796 days ago).

License · maintenance · safety

permissive license (permissive) — Licensed under Apache 2.0 (permissive). You can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.

last release 2024-06-09 (796 days) · last repo commit 2026-06-22 · 5 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 148,951 downloads/mo, #11,011 on PyPI

Verify before relying

from rounders import round, TIES_TO_AWAY

# Default Banker's rounding
result = round(2.5)

# Round ties away from zero
result = round(2.5, mode=TIES_TO_AWAY)

# Round to significant figures
from rounders import round_to_figures
result = round_to_figures(1.234567, 3)
  • Whether the package has a published test suite or documented test coverage.
  • Performance characteristics when rounding very large numbers or high-precision decimals.
Same gist for agents: .md · .json

What it is and what it does

Rounders extends Python's built-in `round` function to support thirteen different rounding modes beyond the default Banker's rounding (TIES_TO_EVEN). It provides both mode-specific functions (like `round_ties_to_away` or `ceil`) and a general `round` function that accepts a `mode` parameter. The package also adds `round_to_figures` for rounding to significant figures rather than decimal places, which is useful in scientific and financial contexts where relative precision matters more than absolute decimal precision.

The package supports rounding Decimal, Fraction, and float types. It includes six to-nearest modes (handling ties differently), six directed modes (always rounding in one direction), and one specialized mode for avoiding double-rounding errors. Common use cases include matching JavaScript's `Math.round` behavior, implementing school-taught rounding (ties away from zero), or selecting IEEE 754 compliant rounding for numerical computing.

Use it for

  • Financial calculations where you need to round ties away from zero instead of to even, matching common business expectations.
  • Scientific data processing where rounding to significant figures is more meaningful than rounding to a fixed decimal place.
  • Porting code from JavaScript or other languages that use different default rounding modes.
  • Numerical algorithms that require specific rounding modes to avoid double-rounding errors (TO_ODD mode).
  • Educational or testing scenarios where you need to demonstrate or verify different rounding behaviors.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

The package has zero dependencies, low install friction, active maintenance, permissive licensing, and fills a genuine gap in Python's standard library. It's useful for anyone working with financial data, scientific calculations, or code that must match specific rounding semantics. No known vulnerabilities.

Install

rounders on PyPI

Before you install

Low friction: pure Python wheel with no runtime dependencies. Actively maintained as of June 2024, though infrequently updated (last commit 796 days ago). Repository is not archived.

Requires Python 3.8 or later.

License in practice

Licensed under Apache 2.0 (permissive). You can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.

Quickstart

from rounders import round, TIES_TO_AWAY

# Default Banker's rounding
result = round(2.5)

# Round ties away from zero
result = round(2.5, mode=TIES_TO_AWAY)

# Round to significant figures
from rounders import round_to_figures
result = round_to_figures(1.234567, 3)

Verify before relying

  • Whether the package has a published test suite or documented test coverage.
  • Performance characteristics when rounding very large numbers or high-precision decimals.

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.8
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceActively maintained 796 days since the last release
Last repo commit
First released
Downloads148,951 / month, #11,011 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Topic :: Scientific/Engineering :: Mathematics

Evidence: rounders-0.2.0-py3-none-any.whl

Tags

Capabilities
rounding modessignificant figures roundingbanker's rounding alternativedecimal rounding controlround away from zerocustom rounding functionsties to even rounding
Topics
numeric-precisionrounding-modes
PyPI keywords
roundroundingsignificant figuresdecimal placesrounding mode

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “rounding modes”

  • roundersProvides drop-in replacements for Python's built-in `round` function…
  • sigfigRounds numbers by significant figures, decimal places, or…
  • fxpmathFxpmath provides fixed-point arithmetic with arbitrary word and…

Give your agent the search over MCP, or paste the wish link into any chat.

More Mathematics packages

networkx Worth it
PyPI · Python Modules · released Dec 2025

NetworkX provides data structures and algorithms for creating, analyzing, and manipulating graphs and networks, supporting everything from simple undirected graphs to complex directed and weighted networks.

BSD-3-Clausepure Python
290.9Mdownloads / mo
kiwisolver Worth it
PyPI · Mathematics · released Mar 2026

kiwisolver is a Python binding to a fast C++ implementation of the Cassowary constraint solver, enabling you to solve systems of linear constraints and inequalities.

Install it if you need to solve constraint systems; skip it if you only need simple linear algebra.

BSD-3-Clausecompiled wheel · 3.10+
205.5Mdownloads / mo
sympy Worth it
PyPI · Scientific/Engineering · released Apr 2025

SymPy is a Python library for symbolic mathematics, performing algebraic manipulation, calculus, equation solving, and mathematical expression simplification without numerical approximation.

BSD-3-Clausepure Python · 3.9+
196.4Mdownloads / mo
contourpy Worth it
PyPI · Information Analysis · released Jul 2025

ContourPy calculates contours of 2D quadrilateral grids using C++11 algorithms wrapped in Python, offering serial and multithreaded implementations without requiring Matplotlib as a dependency.

BSD-3-Clausecompiled wheel · 3.11+
191.2Mdownloads / mo
torch With conditions
PyPI · Software Development · released Jul 2026

PyTorch provides GPU-accelerated tensor computation and automatic differentiation for building and training deep neural networks in Python.

Apache-2.0 AND Apache-2.0 WITH LLVM-exception AND BSD-2-Clause AND BSD-3-Clause AND BSL-1.0 AND MITcompiled wheel · 3.10+
102.5Mdownloads / mo
onnxruntime Worth it
PyPI · Software Development · released Jul 2026

onnxruntime loads and executes Open Neural Network Exchange (ONNX) models with a focus on inference performance across CPUs and accelerators.

Install it if you have ONNX models to run in production or development.

MITcompiled wheel · 3.11+
89.3Mdownloads / mo

See also sigfig · py-money · py-moneyed · prefixed · py-expression-eval · hightime · ml-dtypes