A numerical representation of preferences with intransitive indifference