PHPackages                             furqansiddiqui/bcmath-php - 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. furqansiddiqui/bcmath-php

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

furqansiddiqui/bcmath-php
=========================

OOP BcMath wrapper lib

0.2.22(6y ago)11001MITPHPPHP ^7.2

Since Mar 22Pushed 6y ago1 watchersCompare

[ Source](https://github.com/furqansiddiqui/bcmath-php)[ Packagist](https://packagist.org/packages/furqansiddiqui/bcmath-php)[ Docs](https://github.com/furqansiddiqui/bcmath-php)[ RSS](/packages/furqansiddiqui-bcmath-php/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (1)Versions (6)Used By (1)

BcMath OOP wrapper
==================

[](#bcmath-oop-wrapper)

BcMath OOP wrapper lib

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

[](#installation)

`composer require furqansiddiqui/bcmath-php`

BcNumber Methods
----------------

[](#bcnumber-methods)

MethodDescriptionReturnsscaleSets the scale parameter`self`trimTrims unnecessary digits (0s on the extreme right after decimal point)`self`originalReturns original number (given on constructor)`string`valueGets value as string`string`intGets value as integer, Throws exception is stored value is not an integer (has decimals) OR exceeds PHP\_INT\_MAX`int`isIntegerChecks if value is integral (does not have decimals)`bool`isZeroChecks if value is zero`bool`isPositiveChecks if value is greater than zero`bool`isNegativeChecks if value is less than zero`bool`equalsCompares value with a number to check if both are equal`bool`compareCompare value with another number`int`greaterThanCompares value with a number to check if value is greater than argument`bool`greaterThanOrEqualsCompares value with a number to check if value is greater than or equals argument`bool`lessThanCompares value with a number to check if value is less than argument`bool`lessThanOrEqualsCompares value with a number to check if value is less than or equals argument`bool`inRangeChecks if value is within (or equals) given min and max arguments`bool`add*---*`self`sub*---*`self`subtract*---*`self`mul*---*`self`multiply*---*`self`multiplyByPow*---*`self`div*---*`self`divide*---*`self`pow*---*`self`mod*---*`self`updateResult of very next calculation will update value of self instance instead of creating new one`self`encodeEncodes current value as Hexadecimal (Base10 to Base16 conversion)`Base16`

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

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

Total

5

Last Release

2539d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11485189?v=4)[M. Furqan Siddiqui](/maintainers/furqansiddiqui)[@furqansiddiqui](https://github.com/furqansiddiqui)

---

Top Contributors

[![furqansiddiqui](https://avatars.githubusercontent.com/u/11485189?v=4)](https://github.com/furqansiddiqui "furqansiddiqui (19 commits)")

### Embed Badge

![Health badge](/badges/furqansiddiqui-bcmath-php/health.svg)

```
[![Health](https://phpackages.com/badges/furqansiddiqui-bcmath-php/health.svg)](https://phpackages.com/packages/furqansiddiqui-bcmath-php)
```

PHPackages © 2026

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