Download the PHP package furqansiddiqui/bcmath-php without Composer
On this page you can find all versions of the php package furqansiddiqui/bcmath-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download furqansiddiqui/bcmath-php
More information about furqansiddiqui/bcmath-php
Files in furqansiddiqui/bcmath-php
Download furqansiddiqui/bcmath-php
More information about furqansiddiqui/bcmath-php
Files in furqansiddiqui/bcmath-php
Vendor furqansiddiqui
Package bcmath-php
Short Description OOP BcMath wrapper lib
License MIT
Homepage https://github.com/furqansiddiqui/bcmath-php
Package bcmath-php
Short Description OOP BcMath wrapper lib
License MIT
Homepage https://github.com/furqansiddiqui/bcmath-php
Please rate this library. Is it a good library?
Informations about the package bcmath-php
BcMath OOP wrapper
BcMath OOP wrapper lib
Installation
composer require furqansiddiqui/bcmath-php
BcNumber Methods
| Method | Description | Returns |
|---|---|---|
| scale | Sets the scale parameter | self |
| trim | Trims unnecessary digits (0s on the extreme right after decimal point) | self |
| original | Returns original number (given on constructor) | string |
| value | Gets value as string | string |
| int | Gets value as integer, Throws exception is stored value is not an integer (has decimals) OR exceeds PHP_INT_MAX | int |
| isInteger | Checks if value is integral (does not have decimals) | bool |
| isZero | Checks if value is zero | bool |
| isPositive | Checks if value is greater than zero | bool |
| isNegative | Checks if value is less than zero | bool |
| equals | Compares value with a number to check if both are equal | bool |
| compare | Compare value with another number | int |
| greaterThan | Compares value with a number to check if value is greater than argument | bool |
| greaterThanOrEquals | Compares value with a number to check if value is greater than or equals argument | bool |
| lessThan | Compares value with a number to check if value is less than argument | bool |
| lessThanOrEquals | Compares value with a number to check if value is less than or equals argument | bool |
| inRange | Checks 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 |
| update | Result of very next calculation will update value of self instance instead of creating new one | self |
| encode | Encodes current value as Hexadecimal (Base10 to Base16 conversion) | Base16 |
All versions of bcmath-php with dependencies
PHP Build Version
Package Version
The package furqansiddiqui/bcmath-php contains the following files
Loading the files please wait ...