Download the PHP package krowinski/bcmath-extended without Composer
On this page you can find all versions of the php package krowinski/bcmath-extended. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download krowinski/bcmath-extended
More information about krowinski/bcmath-extended
Files in krowinski/bcmath-extended
Download krowinski/bcmath-extended
More information about krowinski/bcmath-extended
Files in krowinski/bcmath-extended
Vendor krowinski
Package bcmath-extended
Short Description Extends php BCMath lib for missing functions like floor, ceil, round, abs, min, max, rand for big numbers. Also wraps existing BCMath functions. (more http://php.net/manual/en/book.bc.php) Supports scientific notations
License MIT
Package bcmath-extended
Short Description Extends php BCMath lib for missing functions like floor, ceil, round, abs, min, max, rand for big numbers. Also wraps existing BCMath functions. (more http://php.net/manual/en/book.bc.php) Supports scientific notations
License MIT
Please rate this library. Is it a good library?
Informations about the package bcmath-extended
bcmath-extended
Extends php BCMath lib for missing functions like floor, ceil, round, abs, min, max, rand for big numbers. Also wraps existing BCMath functions. (more http://php.net/manual/en/book.bc.php)
Installation
Features
- config
- setTrimTrailingZeroes - disable|enable trailing zeros (default trimming is enabled)
- new tool methods
- convertScientificNotationToString - converts scientific notation to string
- getScale - gets current global scale
- getDecimalsLengthFromNumber - gets amount of decimals
- hexdec - converting from hexadecimal to decimal
- dechex - converting from decimal to hexadecimal
- bin2dec - converting from binary to decimal
- dec2bin - converting from decimal to binary
- new math functions
- round
- abs
- rand
- max
- min
- roundDown
- roundUp
- roundHalfEven
- ceil
- exp
- log
- fact
- pow (supports fractional)
- mod (supports fractional + scale in php 5.6 <)
- bitwise operators
- bitXor
- bitOr
- bitAnd
- proxy for original functions (http://php.net/manual/en/book.bc.php)
- all functions supports scientific notation
- all functions are static, so it can be easily replaced by this lib
Info
As of 7.2 float can be passed to bcmod, but they don't return correct values (IMO)
I created bug for this in https://bugs.php.net/bug.php?id=76287, but it was commented as documentation issue not a bug.
But I still will use floor not truncated for mod in this lib.
All versions of bcmath-extended with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.4|^8.0
ext-bcmath Version *
ext-bcmath Version *
The package krowinski/bcmath-extended contains the following files
Loading the files please wait ....