Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xethron/bignum
A smart wrapper for bcmath that allows
https://github.com/xethron/bignum
Last synced: 3 months 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 6 years ago)
- Default Branch: master
- Last Pushed: 2023-09-20T07:21:46.000Z (over 1 year ago)
- Last Synced: 2024-05-18T20:22:12.424Z (8 months ago)
- Language: PHP
- Size: 63.5 KB
- Stars: 5
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bignum library for PHP
[![codecov](https://codecov.io/gh/Xethron/bignum/graph/badge.svg?token=77SL86KV17)](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