public function FractionInterface::toString in Fraction 2.x
Same name and namespace in other branches
- 8 src/FractionInterface.php \Drupal\fraction\FractionInterface::toString()
Return a string representation of the fraction.
Parameters
string $separator: The separator to place between the numerator and denominator.
Return value
string Returns a string with the numerator, separator, and denominator.
1 method overrides FractionInterface::toString()
- Fraction::toString in src/
Fraction.php - Return a string representation of the fraction.
File
- src/
FractionInterface.php, line 59
Class
- FractionInterface
- Defines the interface for Fraction class.
Namespace
Drupal\fractionCode
public function toString(string $separator = '/');