#t207. 计算分数的浮点数值

计算分数的浮点数值

Floating-Point Value of a Fraction

Problem Background

Special for beginners, ^_^

Problem Description

Two integers aa and bb are given as the numerator and denominator, respectively, of the fraction  ab \,{a\over b}\,. Compute its floating-point value (a double-precision floating-point number, kept to 9 decimal places).

Input Format

A single line containing two integers aa and bb (b≠0b \ne 0).

Output Format

A single line containing the floating-point value of the fraction  ab \,{a\over b}\, (a double-precision floating-point number, kept to 9 decimal places).

Sample Input

5 7

Sample Output

0.714285714

Constraints

1s, 1024KiB for each test case.

Hint

  • Writing a / b directly gives 0 — dividing two int values yields no fractional part. Think about how to make the division produce a decimal.
  • To keep 9 decimal places: use fixed together with setprecision(9).
  • Check against the sample: 5 7 → 0.714285714.