You are here

public function Fraction::getNumerator in Fraction 7

Get the numerator.

Return value

string Returns the numerator value.

10 calls to Fraction::getNumerator()
Fraction::add in ./fraction.class.inc
Add another fraction to this one.
Fraction::divide in ./fraction.class.inc
Divide this fraction by another one.
Fraction::gcd in ./fraction.class.inc
Calculate the fraction's greatest common divisor using Euclid's algorithm.
Fraction::multiply in ./fraction.class.inc
Multiply this fraction with another one.
Fraction::reciprocate in ./fraction.class.inc
Reciprocate the fraction.

... See full list

File

./fraction.class.inc, line 86
Fraction class

Class

Fraction
@file Fraction class

Code

public function getNumerator() {
  return $this->numerator;
}