BSD Ports

devel/pear-Math_Fraction 0.4.1 DragonFly

Classes that represent and manipulate fractions

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
PHP30
Categories
devel, pear, www
Package size
5.1 KiB, 19.9 KiB installed

Description

Classes that represent and manipulate fractions (x = a/b).

The Math_FractionOp static class contains definitions for:

  • basic arithmetic operations
  • comparing fractions
  • greatest common divisor (gcd) and least common multiple (lcm) of two integers
  • simplifying (reducing) and getting the reciprocal of a fraction
  • converting a float to fraction.

In the other systems

SystemPortVersion
DragonFlydevel/pear-Math_Fraction0.4.1
FreeBSDdevel/pear-Math_Fraction0.4.1
HardenedBSDdevel/pear-Math_Fraction0.4.1
GhostBSDdevel/pear-Math_Fraction0.4.1

Install

Binary package:

pkg install php81-pear-Math_Fraction

From DPorts:

cd /usr/dports/devel/pear-Math_Fraction && make install clean

Dependencies

Run dependencies 2

No port depends on this one.

Configuration

No options to configure.

Service scripts
none
Flavors
php82-pear-Math_Fraction-0.4.1, php83-pear-Math_Fraction-0.4.1, php84-pear-Math_Fraction-0.4.1