FractionString extension

Adds Fraction functionalities to String.

on

Properties

isFraction bool
Checks whether the string contains a valid representation of a fraction in the format 'a/b'.
no setter

Methods

toFraction() Fraction
Converts the string into a Fraction.