For a body floating in a liquid at rest, the buoyant force acting on the body is equal in magnitude to the weight of the body. This is the condition for flotation. If the weight were greater than the buoyancy, the body would sink.