"To a T" usually means "to the smallest detail" ......some believe it's an expression from the biblical writings. For example, "it suits him to a T ."
T = title in ancient times