Essential additions to BCMath
BCMaph is a PHP library that provides several additional mathematical functions that support arbitrary precision and complement the BCMath functions for PHP.
You can install the package via composer:
composer require 'empaphy/bcmath-additions:^1.0@dev'- bcabs — Returns the absolute value of an arbitrary precision number.
- bcgetscale — Deduce the scale of arbitrary precision numbers.