https://github.com/xethron/bignum
A smart wrapper for bcmath that allows
https://github.com/xethron/bignum
Last synced: about 1 year ago
JSON representation
A smart wrapper for bcmath that allows
- Host: GitHub
- URL: https://github.com/xethron/bignum
- Owner: Xethron
- License: mit
- Created: 2018-10-13T16:23:19.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-09-20T07:21:46.000Z (almost 3 years ago)
- Last Synced: 2025-03-27T13:39:52.494Z (over 1 year ago)
- Language: PHP
- Size: 63.5 KB
- Stars: 5
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bignum library for PHP
[](https://codecov.io/gh/Xethron/bignum)
Intelligent wrapper for BCMath.
## Why use this library?
BCMath is a great library, but it has some shortfalls.
This library aims to address those shortfalls.
### Features
* Adds serialisation of numbers:
* Serialises Floats
* Serialises Strings
* Understands Scientific Notation
* Throws exceptions for invalid values
* Adds Rounding
* All results are rounded
## Installation
The recommended way to install this is through composer:
```bash
composer require "xethron/bignum"
```
## Usage
```php