{"categories":[{"label":"Mathematics","url":"https://skillfed.io/packages/category/scientific-engineering-mathematics/3"}],"enrichment":{"capability":"Provides drop-in replacements for Python's built-in `round` function with thirteen different rounding modes, plus functions for rounding to significant figures instead of decimal places.","skillfed_tags":["numeric-precision","rounding-modes"],"use_cases":["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."],"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.\n\nThe 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.","worth_installing":"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."},"id":"rounders","links":{"html":"https://skillfed.io/packages/rounders","md":"https://skillfed.io/packages/rounders.md","pypi":"https://pypi.org/project/rounders/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2024-06-09","license_spdx":null,"license_treatment":"permissive","name":"rounders","python_support":"supports_current","summary":"round-function equivalents with different rounding-modes"},"popularity":{"monthly_downloads":148951,"position":11011,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.2.0"}
