Download the PHP package pamil/rounder without Composer
On this page you can find all versions of the php package pamil/rounder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download pamil/rounder
More information about pamil/rounder
Files in pamil/rounder
Download pamil/rounder
More information about pamil/rounder
Files in pamil/rounder
Please rate this library. Is it a good library?
Informations about the package rounder
Rounder
Simple round utility for PHP as equivalent for \round()
function. Provides interface and default, safe, unit-tested implementation for rounding:
- half up (half towards positive infinity)
- half down (half towards negative infinity)
- half even
- half odd
- half away from zero (half towards infinity)
- half towards zero (half away from infinity)
- up (towards positive infinity)
- down (towards negative infinity)
- away from zero (towards infinity)
- towards zero (away from infinity)
Unlike round()
, where PHP_ROUND_HALF_UP
rounding mode means rounding half away from zero and PHP_ROUND_HALF_DOWN
means rounding half towards zero, Rounder provides correct implementation of these rounding modes.
Supports PHP >= 5.3 and HHVM.
How to use?
- Run
composer require "pamil/rounder:~2.0"
- Play with it!
All versions of rounder with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3
The package pamil/rounder contains the following files
Loading the files please wait ....