php-bignumbers icon indicating copy to clipboard operation
php-bignumbers copied to clipboard

A robust library to handle immutable big numbers inside PHP applications

Results 22 php-bignumbers issues
Sort by recently updated
recently updated
newest added

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...

question
help wanted

A list of important numerical constants. ### Interfaces - [X] Zero - [X] One - [X] PI - [X] E - [X] Euler - Mascheroni Constant - [X] Golden Ratio...

enhancement
help wanted

**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...

question
help wanted

It would be nice to have the same round modes than round() PHP function: http://php.net/manual/en/function.round.php

enhancement
help wanted

## 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...

enhancement
help wanted

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...

enhancement
help wanted

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 .

bug

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.

bug
enhancement
help wanted