Alternative idea - If there's space for infill, then adjusting the infill percentage will change the density. E.g., 100% infill should sink, but 50% might be enough to float. You could also tweak infill throughout the model to determine how it floats.