Skip to content

GreenImp/php-math

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-math

A basic set of math scripts that deal in strings to handle long floating point values.

Internally, this uses PHP's BC Math functions, and moneyphp's BcMathCalculator.

The main difference from MoneyPhp is that MoneyPhp's round() method always rounds to an integer, whereas this library can round to a chosen precision as well.

It also adds a few extra functions, such as sum() which will sum an iterable of numbers.

Setup

composer require GreenImp/PhpMath

About

A basic set of math scripts that deal in strings to handle long floating point values

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages