Correct solution. Changing from Float to Double worked.