You are here

public function FractionInterface::gcd in Fraction 8

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

Calculate the fraction's greatest common divisor using Euclid's algorithm.

Return value

string Returns the greatest common divisor.

1 method overrides FractionInterface::gcd()
Fraction::gcd in src/Fraction.php
Calculate the fraction's greatest common divisor using Euclid's algorithm.

File

src/FractionInterface.php, line 109

Class

FractionInterface
Defines the interface for Fraction class.

Namespace

Drupal\fraction

Code

public function gcd();