Cast to double instead of float