Repeating Decimal

I’m trying to have to students input a fraction however I’m having an issue of stating the problem is correct when it comes to repeating decimals like 1/3.

The only way I have found to work is to set a tolerance.

Example
this.numericValue > .333 and this.numericValue < .334

2 Likes

This is actually the recommended method, awesome stuff!