The fraction of a body submerged when floating in a liquid is determined by the ratio of the density of the body to the density of the liquid (ρ_body / ρ_liquid). The equilibrium condition for floating is that the buoyant force equals the weight of the body. Both buoyant force (which depends on gravity) and weight (which also depends on gravity) are directly proportional to the local acceleration due to gravity (g).