You are here

public function Fraction::getDenominator in Fraction 8

Same name and namespace in other branches
  1. 2.x src/Fraction.php \Drupal\fraction\Fraction::getDenominator()

Gets the denominator.

Return value

string|int Returns the denominator value.

Overrides FractionInterface::getDenominator

9 calls to Fraction::getDenominator()
Fraction::add in src/Fraction.php
Adds another fraction to this one.
Fraction::divide in src/Fraction.php
Divides this fraction by another one.
Fraction::gcd in src/Fraction.php
Calculate the fraction's greatest common divisor using Euclid's algorithm.
Fraction::multiply in src/Fraction.php
Multiplies this fraction with another one.
Fraction::reciprocate in src/Fraction.php
Reciprocates the fraction.

... See full list

File

src/Fraction.php, line 122

Class

Fraction
A simple class for representing and acting upon a fraction.

Namespace

Drupal\fraction

Code

public function getDenominator() {
  return $this->denominator;
}