2017 © Pedro Peláez
 

library math-tools

Number management library

image

thelia/math-tools

Number management library

  • Friday, December 4, 2015
  • by thelia
  • Repository
  • 1 Watchers
  • 0 Stars
  • 41,996 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 4 Versions
  • 2 % Grown

The README.md

Maths tools

This library includes some tools for math operations., (*1)

Build Status License Scrutinizer Quality Score, (*2)

Number

Here's an example of rounding problems solved by this lib:, (*3)

$price = new Number('3.99');

$price->divide('1.2');
echo $price->getNumber(); // 3.33

$price->multiply('1.2');
echo $price->getNumber(); // 3.99, where most of time libs returns 4.00

GCD

This tool computes the GCD of two numbers., (*4)

echo GCD::getGCD(10,5); // 5
echo GCD::getGCD(10,10); // 10
echo GCD::getGCD(20,10); // 10
echo GCD::getGCD(11,10); // 1

The Versions

04/12 2015

dev-master

9999999-dev

Number management library

  Sources   Download

LGPL

The Development Requires

by Benjamin Perche

05/11 2015

1.0.2

1.0.2.0

Number management library

  Sources   Download

LGPL

The Development Requires

by Benjamin Perche

05/11 2015

1.0.1

1.0.1.0

Number management library

  Sources   Download

LGPL

The Development Requires

by Benjamin Perche

07/11 2014

1.0

1.0.0.0

Number management library

  Sources   Download

LGPL

The Development Requires

by Benjamin Perche