Creating a fraction from two table entries

I have a table where students are entering a values into two columns. I’d like to have the two columns represent the numerator and denominator of a fraction. This is my current code, which gets the numerator column in the numerator but leaves 0 in the denominator and puts the second number next to it. Any suggestions?

“\frac${table2.cellContent(1,2)}{table2.cellContent(1,3)}”

thanks!

Nicole

Basically, missing curly braces around each variable and the $ before the second.

\\frac{${table2.cellContent(1,2)}} {${table2.cellContent(1,3)}}

Fraction syntax is:
\\frac{numerator}{denominator}