Back to Question

Fraction to Recurring Decimal

Question Explain

Given two integers representing the numerator and denominator of a fraction, return the fraction in string format. If the fractional part is repeating, enclose the repeating part in parentheses.

Start Trying This Question Simulation

Click "Start Speaking" and answer the question naturally.