dwzi/class-math

Class for Arbitrary Precision Mathematics

0.2 2018-08-24 18:23 UTC

This package is not auto-updated.

Last update: 2024-04-14 03:41:23 UTC


README

Classes

  • Math (PHP functions)
  • MathBCMath (PHP bcmath extension)

Parameters

  • Pre Decimals
  • Decimals
  • Fill Character for Pre Decimals
  • Comma
  • Seperator

Functions

  • Value Format
  • Addition
  • Subtraction
  • Multiplication
  • Division
  • Modulo
  • Exponentiation with Base and Exponent
  • Logarithm with Base and Antilogarithm
  • nth Root with Degree and Radicand
  • Square Root
  • Compare
  • Absolute
  • Round
  • Round Up
  • Round Down

Tests

$ ./vendor/bin/phpunit --bootstrap vendor/autoload.php tests/MathTest
$ ./vendor/bin/phpunit --bootstrap vendor/autoload.php tests/MathBCMathTest

Credits

DWZI GmbH
DWZI GmbH
https://dwzi.at