Catalog PyPI
PACKAGE EXPLORERView in registry

adaptive-floor

PyPI

A lightweight Python library for precise number flooring and formatting. Includes adaptive decimal precision based on the fractional magnitude.

Versions collected1
Direct dependencies0From release 0.1.6
Last observed20 Oct, 19:06 UTC

README

Version 0.1.6 documentation

Adaptive Floor

A Python library for precise number flooring with adaptive decimal precision. It ensures accurate results without floating-point errors.

🚀 Features

  • Floor to Fixed Precision: Floors a number to a specific number of decimal places.
  • Adaptive Precision: Dynamically determines the required decimal places based on fractional magnitude.
  • Avoids Precision Loss: Uses decimal.Decimal for high accuracy.

📌 Installation

Clone the repository:

git clone https://github.com/tnam0x/adaptive_floor.git

or install via pip:

pip install adaptive-floor

📖 Usage

from adaptive_floor import adaptive_floor

# Floor a number to 3 decimal places
print(adaptive_floor(12.34567, 3))  # Output: 12.3456

# Adaptive flooring based on fractional part
print(adaptive_floor(0.004567))  # Output: 0.00456 (auto-determined decimals)

📜 License

This project is licensed under the GNU General Public License v3.0 (GPLv3). See the LICENSE file for details.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.618 Mar 20250

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

ACCESSIBLE
tnam0x/adaptive_floor

Shared repository data · GitHub

License detected in repository
GPL-3.0
License branch / ref
main
Last push
18 Mar 2025
Archived
No
Contributor identities
— · partial collection

Public sponsor counts have not been collected. These signals belong to the repository owner.

Downloads & popularity

0count
Gauge · observed snapshots22 Oct 2026
10.50
2026-10-22: 0 · observed 2026-10-22T18:57:40.7810917Z
22 Oct22 Oct

github · 1 observations shown. Missing days are unknown.

View observed values
Date / source periodValueObserved at
2026-10-2202026-10-22T18:57:40.7810917Z

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:06 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:17be93745f397bcc64a99dc0e0e324be005b2c329ccfef82461458644ac50796