Fixed floatToChords method