Input repeating decimal fraction

The slope is 2/3. How do I get this to work? For the other slopes, I could enter a decimal in the content editor and when students entered the fraction, it marked it as correct. How do I do it for repeating decimals?

Here is what I have - It works when the slope fraction is a terminating decimal and I can enter in the decimal.


correct: equation.slope= 2/3 and equation.yIntercept=-2

Instead of 2/3, write numericValue(“\frac{2}{3}”)

You can’t do operations inside CL, so instead you have to write operations as latex and input that to the numericValue function which returns the actual number and compares it against the student answer.