• Is this a bug?

Question related to mission Repeating Decimal OLD

 

Hello, when I write this code, it passed every number, but it writes me a fail. I don't know where is the problem. Please check this code.

Thanks