[11/77] Add a float_mode_for_size helper function