# Checking fraction answers

**URL:** <https://cl.desmos.com/t/checking-fraction-answers/2476>\
**Category:** Questions\
**Tags:** validation, correctness\
**Created:** [January 25, 2021, 3:09pm UTC](https://cl.desmos.com/t/checking-fraction-answers/2476 "2021-01-25T15:09:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tarnold](https://avatars.discourse-cdn.com/v4/letter/t/c5a1d2/32.png) [@tarnold](https://cl.desmos.com/u/tarnold)\
**Post date:** [January 25, 2021, 3:09pm UTC](https://cl.desmos.com/t/checking-fraction-answers/2476/1 "2021-01-25T15:09:16Z")

</div>

Hi, I am using the following code to check pupils anwser and want to checck whether they have input the fraction 1/9 - can anyone point me in the correct direction?

cellContent(1,3): when table1.cellNumericValue(1,2)= _1/9_ “✅” OTHERWISE “N”

how do I write 1/9 as it wpn’t allow use of /

---

<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:** [January 25, 2021, 7:09pm UTC](https://cl.desmos.com/t/checking-fraction-answers/2476/2 "2021-01-25T19:09:34Z")

</div>

```auto
cellContent(1,3): when table1.cellNumericValue(1,2)>0.11 and 
table1.cellNumericValue(1,2)<0.12 "checkmark" OTHERWISE “N”

```

For non-terminating decimals, there can be problems with numericValue equalities, so instead we specify within a range. There are other methods using rounding or the absolute value of their difference as well.
