PHPackages                             xethron/bignum - 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. xethron/bignum

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

xethron/bignum
==============

v0.2.1(2y ago)6963MITPHPPHP ^7.0 | ^8.0

Since Oct 13Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Xethron/bignum)[ Packagist](https://packagist.org/packages/xethron/bignum)[ RSS](/packages/xethron-bignum/feed)WikiDiscussions master Synced 4d ago

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

Bignum library for PHP
======================

[](#bignum-library-for-php)

[![codecov](https://camo.githubusercontent.com/8d212cae7e78cc3d6777439eb15ba131da139b7457fd169c76160b588361d65c/68747470733a2f2f636f6465636f762e696f2f67682f58657468726f6e2f6269676e756d2f67726170682f62616467652e7376673f746f6b656e3d3737534c38364b563137)](https://codecov.io/gh/Xethron/bignum)

Intelligent wrapper for BCMath.

Why use this library?
---------------------

[](#why-use-this-library)

BCMath is a great library, but it has some shortfalls. This library aims to address those shortfalls.

### Features

[](#features)

- Adds serialisation of numbers:
    - Serialises Floats
    - Serialises Strings
    - Understands Scientific Notation
    - Throws exceptions for invalid values
- Adds Rounding
- All results are rounded

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

[](#installation)

The recommended way to install this is through composer:

```
composer require "xethron/bignum"
```

Usage
-----

[](#usage)

```
