You are here

public function FractionInterface::toString in Fraction 2.x

Same name and namespace in other branches
  1. 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\fraction

Code

public function toString(string $separator = '/');