
Rounding error on exactlyDividedBy() · Issue #55 · brick/math
I had something like this: BigDecimal::one ()->exactlyDividedBy (BigDecimal::of (10)); And I was getting: PHP Fatal error: Uncaught Brick\Math\Exception\RoundingNecessaryException: …
exactlyDividedBy throwing a RoundingNecessaryException. #7
Jul 14, 2017 · The 'exactlyDividedBy' method is throwing a RoundingNecessaryException. I'm guessing this shouldn't happen or am i missing something? Example: BigDecimal::of(1) …
Implement rounding mode in sqrt () · Issue #99 · brick/math
Sep 3, 2025 · BigInteger::sqrt () BigDecimal::sqrt ()Notifications You must be signed in to change notification settings Fork 85
Add minus and plus to BigNumber abstract class. #97 - GitHub
Aug 18, 2025 · Now, if we pass instances of BigDecimal to minimumOf and want to plus a number to BigNumber that is returned (an instance of BigDecimal, that's not possible because plus …
BigDecimal's scale should be zero when all fractional digits
Jul 5, 2024 · When working with databases (MySQL8) and decimal columns, it returns a string with every fractional digit, even when all are zero. In that case, when all fractional digits are …
Add some generic number type when you don't know if the result ... - GitHub
As far as I know, the bc library (and gmp too I think) works on arbitrary precision numbers and doesn't discriminate between int or float / decimal. I am re-writing a TypeScript library to PHP …
When installing math i got this massage · Issue #83 - GitHub
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Add a factory method that returns null for null input #92
May 29, 2025 · Hello brick/math team, First, thank you for developing and maintaining this excellent and very useful library. I've been using brick/math and noticed that when working …
Issue with dividedBy and MultipliedBy? #59 - GitHub
Hi! I'm currently trying to convert this following formula to my code % increase = (total - (total - current)) ÷ total × 100 However it somehow give different result when I wrote dividedBy then …
brick/math method for gmp_invert · Issue #47 - GitHub
Hi, During the implementation of this library in one of my projects, I spent a few moment to find a way to use the GMP method gmp_invert. In the end, I created my own method, by it could be …