2017 © Pedro Peláez
 

library decimal

Simple wrapper around BC Math for simple math functions

image

jaycodesign/decimal

Simple wrapper around BC Math for simple math functions

  • Monday, March 21, 2016
  • by tenfef
  • Repository
  • 2 Watchers
  • 3 Stars
  • 409 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 8 % Grown

The README.md

Decimal

Simple wrapper around BC Math for simple math functions, (*1)

Installation

Simply add a dependency to your project's composer.json file if you use Composer to manage the dependencies of your project., (*2)

Here is a minimal example of a composer.json file that just defines a dependency on Decimal:, (*3)

{
    "require": {
        "jaycodesign/decimal": "dev-master"
    }
}

Usage Examples

  use JaycoDesign\Decimal\Decimal;

  Decimal::mul(10, 5); // 50
  Decimal::div(10, 5); // 2
  Decimal::add(10, 5); // 15
  Decimal::sub(10, 5); // 5

  Decimal::greater_than(1,2); // TRUE
  Decimal::less_than(1,2); // FALSE

  Decimal::trim(10.3400000); // 10.34


The Versions

21/03 2016

dev-master

9999999-dev

Simple wrapper around BC Math for simple math functions

  Sources   Download

MIT

The Requires

  • ext-bcmath *

 

The Development Requires

decimal bcmath bc math

21/03 2016

v0.2

0.2.0.0

Simple wrapper around BC Math for simple math functions

  Sources   Download

MIT

The Requires

  • ext-bcmath *

 

The Development Requires

decimal bcmath bc math

07/12 2015

v0.1

0.1.0.0

Simple wrapper around BC Math for simple math functions

  Sources   Download

MIT

The Development Requires

decimal bcmath bc math