DSA Key Problems

Fraction to Recurring Decimal

Convert a fraction to a decimal string, enclosing any repeating fractional part in parentheses.