declare ttarf as double, as in client.c