php-bignumbers
php-bignumbers copied to clipboard
A robust library to handle immutable big numbers inside PHP applications
The default string representation that the Decimal class gives is like this: ``` (string)Litipk\BigNumbers\Decimal::fromString('11111111111111111.55555555555555') "11111111111111111.55555555555555" ``` It would be nice if there is a method to format strings like these...
It is currently impossible to work with trigonometric functions (`cos()`, `sin()`, …) with more than 32 digits of precision, since the calls to `DecimalConstants`, where `pi()` is limited to 32...
Hi, I'm thinking about creating an organization to hold scientific and mathematical libraries projects in PHP, and sharing the ownership of this organization with more people to improve the reliability...
A list of important numerical constants. ### Interfaces - [X] Zero - [X] One - [X] PI - [X] E - [X] Euler - Mascheroni Constant - [X] Golden Ratio...
**EDIT :** This idea is no longer proposed, a new issue will be posted if we arrive to a consensus in this thread. Because we want to introduce new classes...
It would be nice to have the same round modes than round() PHP function: http://php.net/manual/en/function.round.php
## Test annotations Currently, the unit tests of the library aren't properly marked with the `@uses` and `@covers` annotations to indicate what's the test intending to cover. This fact leads...
It would be very useful to determine if we are working with real number approximations or if we explicitly know that we're working with rational numbers when we apply the...
Currently, making `$a->pow($b)` can produce errors if `$a` is a negative value. To fix the problem it's a good idea to solve the bugs #21 and #22 .
I noticed that there is no size check of exponential part. If I pass something like this: ``` 1.33E+3333333333333333333333 ``` It will cause "Allowed memory size exhausted" error.