PHPackages                             fhferreira/round - 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. fhferreira/round

ActiveLibrary

fhferreira/round
================

Round numbers with normatives

1.4(9mo ago)550.7k↓42.4%1[1 issues](https://github.com/fhferreira/round/issues)MITPHPPHP ~7.2|~8.0

Since Jul 7Pushed 9mo ago2 watchersCompare

[ Source](https://github.com/fhferreira/round)[ Packagist](https://packagist.org/packages/fhferreira/round)[ Docs](https://github.com/fhferreira/round)[ RSS](/packages/fhferreira-round/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (5)Used By (0)

Fhferreira/Round
================

[](#fhferreiraround)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d1926fc79cea15c0acbd68ab5cb24852edcac821d8c17bea3545858108750a5f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666866657272656972612f726f756e642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fhferreira/round)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/832328bea8440aa9decdb8ce516a0347f3670ca4426dd843dbb47539ca32b688/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f666866657272656972612f726f756e642f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/fhferreira/round)[![Coverage Status](https://camo.githubusercontent.com/911d4719cfc80a4811718036fd7c898073472abc5dcb33e1a6e5f93bde573893/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f666866657272656972612f726f756e642e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/fhferreira/round/code-structure)[![Quality Score](https://camo.githubusercontent.com/79d47045469dd6d237313fd861ca89c6274cd697aa06f14e6c1bce98cc36d3f6/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f666866657272656972612f726f756e642e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/fhferreira/round)[![Total Downloads](https://camo.githubusercontent.com/4ae10f072b57b2fac098d6e3cca0285663f5e6506377e103354136f3cea1fe67/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f666866657272656972612f726f756e642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fhferreira/round)

Round numbers with normatives like ABNT NBR 5891.

Structure
---------

[](#structure)

```
src/
tests/

```

Install
-------

[](#install)

Via Composer

```
$ composer require fhferreira/round
```

Usage
-----

[](#usage)

```
use Fhferreira\Round\AbntNbr5891;

echo AbntNbr5891::round(12.744623);
// it should echo 12.74
```

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Flávio H. Ferreira](https://github.com/fhferreira)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance52

Moderate activity, may be stable

Popularity34

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor4

4 contributors hold 50%+ of commits

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 ~616 days

Total

4

Last Release

291d ago

PHP version history (2 changes)1.0PHP ~7.2

1.3PHP ~7.2|~8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/6737936990660260df87570e586c254abe975be9f0a7f3964abf38ed5012b4b7?d=identicon)[fhferreira](/maintainers/fhferreira)

---

Top Contributors

[![philsturgeon](https://avatars.githubusercontent.com/u/67381?v=4)](https://github.com/philsturgeon "philsturgeon (49 commits)")[![frankdejonge](https://avatars.githubusercontent.com/u/534693?v=4)](https://github.com/frankdejonge "frankdejonge (38 commits)")[![ravage84](https://avatars.githubusercontent.com/u/625761?v=4)](https://github.com/ravage84 "ravage84 (10 commits)")[![gmponos](https://avatars.githubusercontent.com/u/5675248?v=4)](https://github.com/gmponos "gmponos (10 commits)")[![fhferreira](https://avatars.githubusercontent.com/u/140686?v=4)](https://github.com/fhferreira "fhferreira (10 commits)")[![jotaelesalinas](https://avatars.githubusercontent.com/u/2042875?v=4)](https://github.com/jotaelesalinas "jotaelesalinas (8 commits)")[![hansott](https://avatars.githubusercontent.com/u/3886384?v=4)](https://github.com/hansott "hansott (7 commits)")[![colinodell](https://avatars.githubusercontent.com/u/202034?v=4)](https://github.com/colinodell "colinodell (7 commits)")[![RobLoach](https://avatars.githubusercontent.com/u/25086?v=4)](https://github.com/RobLoach "RobLoach (7 commits)")[![reinink](https://avatars.githubusercontent.com/u/882133?v=4)](https://github.com/reinink "reinink (5 commits)")[![bcrowe](https://avatars.githubusercontent.com/u/752603?v=4)](https://github.com/bcrowe "bcrowe (5 commits)")[![browner12](https://avatars.githubusercontent.com/u/5232313?v=4)](https://github.com/browner12 "browner12 (5 commits)")[![EmanueleMinotto](https://avatars.githubusercontent.com/u/417201?v=4)](https://github.com/EmanueleMinotto "EmanueleMinotto (5 commits)")[![marcqualie](https://avatars.githubusercontent.com/u/101022?v=4)](https://github.com/marcqualie "marcqualie (4 commits)")[![hassankhan](https://avatars.githubusercontent.com/u/1781985?v=4)](https://github.com/hassankhan "hassankhan (3 commits)")[![fulldecent](https://avatars.githubusercontent.com/u/382183?v=4)](https://github.com/fulldecent "fulldecent (3 commits)")[![jclyons52](https://avatars.githubusercontent.com/u/6395559?v=4)](https://github.com/jclyons52 "jclyons52 (3 commits)")[![alexbilbie](https://avatars.githubusercontent.com/u/77991?v=4)](https://github.com/alexbilbie "alexbilbie (2 commits)")[![assertchris](https://avatars.githubusercontent.com/u/200609?v=4)](https://github.com/assertchris "assertchris (2 commits)")[![barryvdh](https://avatars.githubusercontent.com/u/973269?v=4)](https://github.com/barryvdh "barryvdh (2 commits)")

---

Tags

roundfhferreira

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/fhferreira-round/health.svg)

```
[![Health](https://phpackages.com/badges/fhferreira-round/health.svg)](https://phpackages.com/packages/fhferreira-round)
```

###  Alternatives

[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)[mnito/round-robin

Round-robin schedule generation implementation in PHP

6169.4k](/packages/mnito-round-robin)[orangesoft/throttler

Load balancer between nodes.

1732.3k1](/packages/orangesoft-throttler)[nick-denry/yii2-round-switch-column

Round switch ToggleColumn for Yii2 GridView

109.3k1](/packages/nick-denry-yii2-round-switch-column)

PHPackages © 2026

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