The freezing point of a material refers to