LearnPy Hub
← Arena
IntermediateRating 1450

Fraction to Decimal

Write a/b as a decimal. If the decimal part repeats forever, put the repeating part in brackets, like 0.(3) or 0.1(6).

Input

Two integers a and b (b ≠ 0).

Output

The decimal.

Sample 1

Input
1 2
Output
0.5

Sample 2

Input
2 1
Output
2
solution.py
Output appears here
Fraction to Decimal · Python Arena problem · LearnPy Hub