rsctd/huge-fraction

A PHP library to work with huge fractions

Installs: 8

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

pkg:composer/rsctd/huge-fraction

1.0.1 2021-04-07 06:35 UTC

This package is auto-updated.

Last update: 2025-12-07 17:24:28 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