Lowest term as answer in table

My code is
`cellContent(1,3): when table1.cellNumericValue(1,2)> 0.47826086 and table1.cellNumericValue(1,2)< 0.47826088 “:white_check_mark:” OTHERWISE “:x:
cellContent(2,3): when table1.cellNumericValue(2,2)= 1 “:white_check_mark:” OTHERWISE “:x:
cellContent(3,3): when table1.cellNumericValue(3,2)= 0.8 “:white_check_mark:” OTHERWISE “:x:
cellContent(4,3): when table1.cellNumericValue(4,2)= 1.12500 “:white_check_mark:” OTHERWISE “:x:

isCorrect= table1.cellNumericValue(1,2)> 0.47826085 and table1.cellNumericValue(1,2)< 0.47826087 and table1.cellNumericValue(2,2)= 3.875 and table1.cellNumericValue(3,2)= 0.8 and table1.cellNumericValue(4,2)= 1.12500

correct: isCorrect`

Is there a way that It only makes it correct if it is in the lowest terms

Do you mean like a reduced fraction? You can include countNumberUsage. Here’s another thread. There are certainly more if that’s not clear.

1 Like

Thank you that worked

1 Like