rsctd / huge-fraction
A PHP library to work with huge fractions
1.0.1
2021-04-07 06:35 UTC
Requires
- php: >=7.0
- ext-bcmath: *
Requires (Dev)
- phpunit/phpunit: 6.0.*
This package is auto-updated.
Last update: 2025-06-07 16:21:50 UTC
README
A PHP library to work with huge fractions
Prerequisites
- PHP version >= 7.0.0
Installation
In your project folder:
composer require rsctd/huge-fraction
Usage
require_once __DIR__.'/../vendor/autoload.php'; use Rsctd\HugeFraction\Fraction; $fraction = Fraction::fromString('3 2/5'); var_dump($fraction);
Running tests
To run the tests locally, run the command
composer test
Reference
Thanks for https://github.com/phospr/fraction