Download the PHP package dovab/big-number without Composer
On this page you can find all versions of the php package dovab/big-number. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download dovab/big-number
More information about dovab/big-number
Files in dovab/big-number
Download dovab/big-number
More information about dovab/big-number
Files in dovab/big-number
Vendor dovab
Package big-number
Short Description Wrapper component for the bc math extension
License MIT
Package big-number
Short Description Wrapper component for the bc math extension
License MIT
Please rate this library. Is it a good library?
Informations about the package big-number
PHP wrapper for the BC Math extension
Wrapper to make working with the BC Math extension of PHP easier to use.
Installation
Install the package using composer:
composer require dovab/big-number
Usage
Create an instance of BigNumber
with the first value. The value can be an integer, float, or a really big number
as a string.
After creating the instance you can manipulate the value using the provided functions:
add
- To add another value to itsubtract
- To subtract a value from itmultiply
- To multiply the value by the given valuedivide
- To divide the value by the given valuemodulus
- To get the modulus of the given value
For example:
The BigNumber
instance also has methods to compare the value to another value:
equals
greaterThan
greaterThanOrEquals
lowerThan
lowerThenOrEquals
All versions of big-number with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4.0
ext-bcmath Version *
ext-bcmath Version *
The package dovab/big-number contains the following files
Loading the files please wait ....