# Checking for graph correctness from a line with a fraction slope

**URL:** <https://cl.desmos.com/t/checking-for-graph-correctness-from-a-line-with-a-fraction-slope/4594>\
**Category:** Questions\
**Tags:** validation, correctness\
**Created:** [November 30, 2022, 9:04pm UTC](https://cl.desmos.com/t/checking-for-graph-correctness-from-a-line-with-a-fraction-slope/4594 "2022-11-30T21:04:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daisy](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daisy/32/3977_2.png) [@Daisy](https://cl.desmos.com/u/Daisy)\
**Post date:** [November 30, 2022, 9:04pm UTC](https://cl.desmos.com/t/checking-for-graph-correctness-from-a-line-with-a-fraction-slope/4594/1 "2022-11-30T21:04:47Z")

</div>

How do I get my code to work if I want my value of m to be -5/6

content:when graph1.number(“m”)=-5/6 and graph1.number(“b”)=5 “correct!”  
otherwise “Not yet, drag the points to create the line.”

---

<div class="post-metadata">

**Author:** ![C\_Harper](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/c_harper/32/1526_2.png) [@C\_Harper](https://cl.desmos.com/u/C_Harper)\
**Post date:** [November 30, 2022, 10:10pm UTC](https://cl.desmos.com/t/checking-for-graph-correctness-from-a-line-with-a-fraction-slope/4594/2 "2022-11-30T22:10:22Z")

</div>

Does it work if you type graph1.number(“m”)=-\frac{5}{6} ?

---

<div class="post-metadata">

**Author:** ![Daisy](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daisy/32/3977_2.png) [@Daisy](https://cl.desmos.com/u/Daisy)\
**Post date:** [November 30, 2022, 10:40pm UTC](https://cl.desmos.com/t/checking-for-graph-correctness-from-a-line-with-a-fraction-slope/4594/3 "2022-11-30T22:40:38Z")

</div>

It did not work. I am very new to coding so than you for your help.

This is my activity: [Checking for Correctness on a Graph\* • Activity Builder by Desmos](https://teacher.desmos.com/activitybuilder/custom/6387da925218b581520092b6).

---

<div class="post-metadata">

**Author:** ![C\_Harper](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/c_harper/32/1526_2.png) [@C\_Harper](https://cl.desmos.com/u/C_Harper)\
**Post date:** [December 1, 2022, 12:00am UTC](https://cl.desmos.com/t/checking-for-graph-correctness-from-a-line-with-a-fraction-slope/4594/4 "2022-12-01T00:00:07Z")

</div>

You could try something like this…

> **[\[Copy of\] Checking for Correctness on a Graph\* • Activity Builder by Desmos](https://teacher.desmos.com/activitybuilder/custom/6387eabab0963ca07e13bd40)**
>
> by Corri Harper

---

<div class="post-metadata">

**Author:** ![Daisy](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daisy/32/3977_2.png) [@Daisy](https://cl.desmos.com/u/Daisy)\
**Post date:** [December 1, 2022, 1:48am UTC](https://cl.desmos.com/t/checking-for-graph-correctness-from-a-line-with-a-fraction-slope/4594/5 "2022-12-01T01:48:36Z")

</div>

WOW! This is exactly what I wanted to do. Thank you!
