How does density affect the tendency of an object to float or sink in a liquid?

WILL MARK AND 5 STARS PLEASE DON'T IGNORE :)