martinlindhe / php-number-presentation
Some utility classes to work with numbers.
Installs: 26
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/martinlindhe/php-number-presentation
Requires
- php: >=5.4.0
- martinlindhe/php-debughelper: ~0.1
Requires (Dev)
- phpunit/phpunit: ~4.8
README
Some utility classes to work with numbers.
-
BigNumber is a class which internally uses bcmath for high precision numeric caluclations.
-
NaturalNumberSwedish parses natural language (Swedish) into numbers
-
NumberBase is a class for converting values between different number bases.
-
RationalNumber is a class to work with rational numbers, like "3/4"
-
RomanNumber is a class for converting between roman numbers
-
MathSymbol has some helpers for printing exponents in superscript or subscript (UTF-8)
-
NumberList is a helper for converting a natural language list of numbers to an array
Installation
composer require martinlindhe/php-number-presentation
Usage
See examples