change time from int to float