Add a more strict test to check if the rank is a float and favour 0 as a fallback instead of 0.0.