Bcmath Extended Versions Save

Extends php BCMath lib for missing functions like floor, ceil, round, abs, min, max, rand for big numbers. Also wraps existing BCMath functions.

7.0.0

1 year ago
  • removed support for php 7.1 7.2 7.3 #43
  • fixed typos #43
  • added code style checkers and phpstan #43
  • added php 8.2 to tests #43
  • used assertSame in test to make assert equals strict (@peter279k Tx!) #44

6.0.1

2 years ago
  • fix: removed 0x from hexdec as was causing depreciation warnings #42
  • fix: rounding half even not always returns correct values #41
  • fix: cleanup return values for older php versions that crash on test -0/0
  • added: php 8.1 in tests

6.0.0

3 years ago
  • cleanup some old php 5.6 fixes
  • added validation for powMod
  • changed naming and params to be more in self explaining
  • code optimisation

5.2.0

3 years ago
  • changed self to static (#36)
  • added ability to trim trailing zeros (#36)
  • little code cleanup
  • added phpunit 8, 9
  • test providers now have strict types

5.1.0

4 years ago
  • added half-even rounding (#34 )
  • fix BC::pow with negative fractional exponent (#33 )

5.0.0

5 years ago
  • added support for php 7.1 >= (#31, #30 )
  • bcdiv will throw exception if you will try to make division by zero
  • all result have trailing zero removed
  • strict and hints added

4.2.1

5 years ago

Fixed trimming of trailing zeros and dot (leaving trailing zeros when no dot present). #29

4.2.0

5 years ago
  • added bitwise xor, or and "and" #27
  • readme update #20

4.1.0

5 years ago
  • Added hexdec() and dechex() functions #25

4.0.0

5 years ago
  • new methods log, exp, fact
  • pow now supports fractional #22
  • fmod - deprected, now we can use mod for floats
  • powFractional - fix for null scale
  • bcmod - completely changes because results where incorrect then expected
  • powMod - better support for floats
  • more test cases (compared with wolframalpha.com)