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. [Utility &amp; Helpers](/categories/utility)
4. /
5. qubb/fixed-point-math

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

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 today

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 47% 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

3738d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/807316?v=4)[psix](/maintainers/psix)[@psix](https://github.com/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

[rtlopez/decimal

An object oriented immutable arbitrary-precision arithmetic library for PHP

27270.4k2](/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.1M22](/packages/krowinski-bcmath-extended)[php-decimal/php-decimal

Correctly-rounded arbitrary precision decimal floating point

781.1M10](/packages/php-decimal-php-decimal)[prestashop/decimal

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

178.7M7](/packages/prestashop-decimal)[delight-im/base-convert

Conversion of arbitrarily large numbers between any two bases or alphabets

161.2k](/packages/delight-im-base-convert)

PHPackages © 2026

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