PHPackages                             qubb/fixed-point-math - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. qubb/fixed-point-math

ActiveLibrary

qubb/fixed-point-math
=====================

Provides functionality for fixed point mathematics

0.1.2(10y ago)017.5kMITPHPPHP &gt;=5.3.3

Since Apr 4Pushed 10y ago1 watchersCompare

[ Source](https://github.com/qubbDev/fixed-point-math)[ Packagist](https://packagist.org/packages/qubb/fixed-point-math)[ Docs](https://github.com/qubbDev/fixed-point-math)[ RSS](/packages/qubb-fixed-point-math/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (4)Used By (0)

Fixed Point Math
================

[](#fixed-point-math)

...

Installation
------------

[](#installation)

To add Fixed Point Math as a local, per-project dependency to your project, simply add a dependency on `qubb/fixed-point-math` to your project's `composer.json` file. Here is a minimal example of a `composer.json` file that just defines a dependency on Fixed Point Math 0.1:

```
{
    "require": {
        "qubb/fixed-point-math": "0.1.*"
    }
}

```

Using
-----

[](#using)

Use

```
\qubb\FixedPointMath\helpers\Rounder::ceil($value, $precision);
\qubb\FixedPointMath\helpers\Rounder::floor($value, $precision);
\qubb\FixedPointMath\helpers\Rounder::round($value, $precision);

```

for rounding numbers in the right direction

```
$value - the string representation of the number
$precisions - the rounding precision

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

3687d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b6ecfc9651ea4a34549ed511a6f787208160759348a7b954e8113f4ccfb40191?d=identicon)[psix](/maintainers/psix)

---

Top Contributors

[![psssix](https://avatars.githubusercontent.com/u/847629?v=4)](https://github.com/psssix "psssix (6 commits)")

---

Tags

decimalroundnumberbcmathgmpfixed-point

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/qubb-fixed-point-math/health.svg)

```
[![Health](https://phpackages.com/badges/qubb-fixed-point-math/health.svg)](https://phpackages.com/packages/qubb-fixed-point-math)
```

###  Alternatives

[aza/math

AzaMath - Anizoptera CMF mathematic component. Arbitrary precision arithmetic (for huge integers; BCMath wrapper) and universal convertor between positional numeral systems (supported bases from 2 to 62 inclusive, and systems with custom alphabet; pure PHP realisation, can use GMP and core PHP functions for speed optimization).

1921.9k1](/packages/aza-math)[ionux/phactor

Phactor is a high-performance PHP implementation of the elliptic curve math functions required to generate &amp; verify private/public (asymmetric) EC keypairs and ECDSA signatures based on secp256k1 curve parameters. This library also includes a class to generate Service Identification Numbers (SINs) based on the published Identity Protocol v1 spec.

5275.0k30](/packages/ionux-phactor)[rtlopez/decimal

An object oriented immutable arbitrary-precision arithmetic library for PHP

27262.8k2](/packages/rtlopez-decimal)[krowinski/bcmath-extended

Extends php BCMath lib for missing functions like floor, ceil, round, abs, min, max, rand for big numbers. Also wraps existing BCMath functions. (more http://php.net/manual/en/book.bc.php) Supports scientific notations

791.0M19](/packages/krowinski-bcmath-extended)[php-decimal/php-decimal

Correctly-rounded arbitrary precision decimal floating point

781.0M9](/packages/php-decimal-php-decimal)[prestashop/decimal

Object-oriented wrapper/shim for BC Math PHP extension. Allows for arbitrary-precision math operations.

178.2M5](/packages/prestashop-decimal)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
