Our math teacher was teaching us about the floor function and after finishing all the important parts we started to do some exercises by ourselves and there was this problem which we all did wrong: $$\lfloor2.\overline{9}\rfloor=??$$ We all thought that since $2.\overline{9}< 3$ the answer would be $2$, but the teacher said the answer is $3.$ He tried to explain us that since we can't find any number between $2.\overline{9}$ and $3$ it can be mathematically proved that $2.\overline{9} = 3.$
He said the full proof of that is very hard and long so I am curious about this subject and I want to know the reason behind this.
thanks in advance