2017 © Pedro Peláez
 

library fixed-point-math

Provides functionality for fixed point mathematics

image

qubb/fixed-point-math

Provides functionality for fixed point mathematics

  • Tuesday, April 5, 2016
  • by psix
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4,766 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 9 % Grown

The README.md

Fixed Point Math

..., (*1)

Installation

To add Fixed Point Math as a local, per-project dependency to your project, simply add a dependency on qubb/fixed-point-math to your project's composer.json file. Here is a minimal example of a composer.json file that just defines a dependency on Fixed Point Math 0.1:, (*2)

{
    "require": {
        "qubb/fixed-point-math": "0.1.*"
    }
}

Using

Use, (*3)

\qubb\FixedPointMath\helpers\Rounder::ceil($value, $precision);
\qubb\FixedPointMath\helpers\Rounder::floor($value, $precision);
\qubb\FixedPointMath\helpers\Rounder::round($value, $precision);

for rounding numbers in the right direction, (*4)

$value - the string representation of the number
$precisions - the rounding precision

The Versions

05/04 2016

dev-master

9999999-dev https://github.com/qubbDev/fixed-point-math

Provides functionality for fixed point mathematics

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • ext-bcmath *

 

The Development Requires

by Dmitriy Karmishkin

number decimal gmp bcmath round fixed-point

05/04 2016

0.1.2

0.1.2.0 https://github.com/qubbDev/fixed-point-math

Provides functionality for fixed point mathematics

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • ext-bcmath *

 

The Development Requires

by Dmitriy Karmishkin

number decimal gmp bcmath round fixed-point

05/04 2016

0.1.1

0.1.1.0 https://github.com/qubbDev/fixed-point-math

Provides functionality for fixed point mathematics

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • ext-bcmath *

 

The Development Requires

by Dmitriy Karmishkin

number decimal gmp bcmath round fixed-point

04/04 2016

0.1.0

0.1.0.0 https://github.com/qubbDev/fixed-point-math

Provides functionality for fixed point mathematics

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • ext-bcmath *

 

The Development Requires

by Dmitriy Karmishkin

number decimal gmp bcmath round fixed-point