In all of my years of keeping fish, I've never had a dead fish float. They typically sink on my
camera.
The reasoning behind it is the amount of air they have in their swim bladder at the time of death. A fuller swim bladder may cause the body to float.