Corrected typo
Use a double instead of float

As pointed out by the group teacher.