Returns the text representation of the specified value, formatted according to the specified settings.