Tom is very weak at maths, his teacher gave him a simple problem of dividing two numbers but as usual Tom is having difficulty solving the problem. Can you help tom solve the problem ?

Teacher has given him 3 numbers a, b and c. The task is to divide a by b and write the answer upto c decimal places.

Input:

The first line of input contains an integer T denoting the number of test cases.
Each line of test case contains 3 numbers a, b and c as described in the question.

Output:

For each test case, output the required division of a/b upto c decimal places.

Constraints:

1 ≤ T ≤ 100,

1 ≤ a,b ≤ 100000

0 ≤ c ≤ 100000

SAMPLE INPUT
3
21 4 0
5 4 3
22 7 10

SAMPLE OUTPUT
5
1.250
3.1428571428
import string
import math
from decimal import *


t1  = int(raw_input())
while t1>0:
	a,b,c = (raw_input().split(' '))
	a = int(a)
	b,c = int(b),int(c)
	x=a/b
	ta = a
	getcontext().rounding = ROUND_DOWN
	t = 0;
	if x==0:
		t = c +1
	else:
		t = c + int(math.log10(x))+1
	getcontext().prec = t
	a = Decimal(a)/Decimal(b)
	# print a
	a = str(a)
	if ta%b==0:
		a=a+'.'
	a = a+'0'*100000
	if c==0:
		print a[0:t]	
	else:
		print a[0:1+ t]

	t1= t1-1