ext-decimal icon indicating copy to clipboard operation
ext-decimal copied to clipboard

Correctly-rounded, arbitrary precision decimal floating-point arithmetic in PHP

Results 28 ext-decimal issues
Sort by recently updated
recently updated
newest added

Hello! When did you plan to release build of extension for newly release of PHP 8.2 for Windows?

``` ``` The code show warning "PHP Warning: Loss of data on string conversion" on line 3 but if change precision from 3 to 4: i.e. $s = new Decimal("71.610",4);...

`Decimal` does not consider 0 and -0 to be exactly the same value: - 0 is considered positive (`isPositive()` returns `true` and `isNegative()` returns `false`) while - -0 is considered...

Currently, while the Decimal has properties, they can not be traversed with `foreach` or any other way: ```php $num = new Decimal(10); $a = []; foreach ($num as $name =>...

Is it possible to compare two decimals while ignoring their precision, or at least ignoring it where it doesn't matter? For example `new Decimal('1', 8)` and `new Decimal('1', 2)` should...

I understand the default rounding mode cannot be changed for internally reducing values to a precision, but would it be possible to set a default rounding mode for calls to...

Apart from precision, Id like to add scale option, which would auto-round decimal result to that many decimal places after any operation and casting from string/int/other decimal. What are your...

I am using xampp with PHP Version 7.4.14. This php version using Compiler | Visual C++ 2017 -- | -- Architecture | x64 but i didn't find any compatible version...