# Checking Fractions in parseOrderedPair

**URL:** <https://cl.desmos.com/t/checking-fractions-in-parseorderedpair/4309>\
**Category:** Questions\
**Tags:** dashboard, validation, correctness\
**Created:** [May 20, 2022, 2:11pm UTC](https://cl.desmos.com/t/checking-fractions-in-parseorderedpair/4309 "2022-05-20T14:11:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pamela\_Davis](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/pamela_davis/32/1890_2.png) [@Pamela\_Davis](https://cl.desmos.com/u/Pamela_Davis)\
**Post date:** [May 20, 2022, 2:11pm UTC](https://cl.desmos.com/t/checking-fractions-in-parseorderedpair/4309/1 "2022-05-20T14:11:18Z")

</div>

I have been successful at getting the coding for checking ordered pairs and providing feedback using this:

ans = parseOrderedPair(this.latex)  
isCorrect = numericValue(ans.x) = -1 and numericValue(ans.y) = -2  
correct: isCorrect  
disableEvaluation: true  
showSubmitButton: true  
submitLabel: “Check my Answers”  
resetLabel: when this.submitted (when isCorrect “✅” otherwise “❌”) otherwise “”

However, now I have a coordinate point with fractions. I have tried different variations of this and it just won’t show me correct on the teacher dashboard nor in the student feedback. The correct coordinate is (-1/3, 7/3).

ans = parseOrderedPair(this.latex)  
isCorrect1 = (numericValue(ans.x) \>= -0.3 and numericValue(ans.x) \< -0.4)  
isCorrect2 = (numericValue(ans.y) \>= 2.3 and numericValue(ans.y) \< 2.4)  
correct: isCorrect1 and isCorrect2  
disableEvaluation: true  
showSubmitButton: true  
submitLabel: “Check my Answers”  
resetLabel: when this.submitted (when isCorrect1 and isCorrect2 “✅” otherwise “❌”) otherwise “”

---

<div class="post-metadata">

**Author:** ![Daniel\_Grubbs](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_grubbs/32/719_2.png) [@Daniel\_Grubbs](https://cl.desmos.com/u/Daniel_Grubbs)\
**Post date:** [May 20, 2022, 4:03pm UTC](https://cl.desmos.com/t/checking-fractions-in-parseorderedpair/4309/2 "2022-05-20T16:03:01Z")

</div>

Your isCorrect1 inequalities are reversed.
