Download the PHP package qubb/fixed-point-math without Composer
On this page you can find all versions of the php package qubb/fixed-point-math. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download qubb/fixed-point-math
More information about qubb/fixed-point-math
Files in qubb/fixed-point-math
Download qubb/fixed-point-math
More information about qubb/fixed-point-math
Files in qubb/fixed-point-math
Vendor qubb
Package fixed-point-math
Short Description Provides functionality for fixed point mathematics
License MIT
Homepage https://github.com/qubbDev/fixed-point-math
Package fixed-point-math
Short Description Provides functionality for fixed point mathematics
License MIT
Homepage https://github.com/qubbDev/fixed-point-math
Please rate this library. Is it a good library?
Informations about the package fixed-point-math
Fixed Point Math
...
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:
{
"require": {
"qubb/fixed-point-math": "0.1.*"
}
}
Using
Use
\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
$value - the string representation of the number
$precisions - the rounding precision
All versions of fixed-point-math with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.3
ext-bcmath Version *
ext-bcmath Version *
The package qubb/fixed-point-math contains the following files
Loading the files please wait ....