According to the law of floatation when a body of surface area S is floating the liquid with density $\rho$ then
Weight of the body =weight of the displaced liquid. But why don't we count the force due to the atmospheric pressure here making it
Weight of the body + $P_0S$=weight of the displaced liquid.
I have started learning fluid dynamics hence please don't find if its a very foolish question.