#K961. Fraction to Decimal Converter
Fraction to Decimal Converter
Fraction to Decimal Converter
You are given n fractions in the following format:
numerator | : | denominator
Your task is to compute the decimal value of each fraction and print it rounded to exactly five decimal places.
In mathematical notation, for a fraction \(\frac{x}{y}\), you need to output its decimal representation as \(\frac{x}{y}\) formatted to five decimal places.
Input is read from standard input and output should be written to standard output.
inputFormat
The first line contains an integer n representing the number of fractions to process.
Each of the next n lines contains a fraction in the format "numerator | : | denominator".
outputFormat
Output the decimal representation of each fraction on a separate line, rounded to exactly 5 decimal places.
## sample4
1 | : | 2
3 | : | 4
10 | : | 5
7 | : | 3
0.50000
0.75000
2.00000
2.33333
</p>