The neutral of a generator should never get into a condition where is is floating. All generators have the neutral tied to the frame of the generator set. It comes this way from the manufacturer. If...
At the main service panel, the grounding and neutral bars are bonded (connected together). At sub-panels they are NOT bonded together, hence the term "floating neutral".