# Writing Equations

**URL:** <https://cl.desmos.com/t/writing-equations/3963>\
**Category:** Questions\
**Created:** [January 15, 2022, 8:52pm UTC](https://cl.desmos.com/t/writing-equations/3963 "2022-01-15T20:52:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Richard\_Bodde](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/richard_bodde/32/2991_2.png) [@Richard\_Bodde](https://cl.desmos.com/u/Richard_Bodde)\
**Post date:** [January 15, 2022, 8:52pm UTC](https://cl.desmos.com/t/writing-equations/3963/1 "2022-01-15T20:52:42Z")

</div>

So I know it isn’t elegant but I developed a slide that I’ve used for students writing certain types of equations and then needing to provide the solution for the variable. HOWEVER, I recently found an issue where a number with a comma in will cause the problem to register incorrectly.

Question: Is there some issue with using the parse equation and there being a comma in one of the numbers in the expression?

Here’s a link to the slide in question: [Addition Equation](https://teacher.desmos.com/activitybuilder/custom/61e3328d7611a1a2280355da)

Thanks for your time.

---

<div class="post-metadata">

**Author:** ![cwinske](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/cwinske/32/3106_2.png) [@cwinske](https://cl.desmos.com/u/cwinske)\
**Post date:** [January 16, 2022, 2:32pm UTC](https://cl.desmos.com/t/writing-equations/3963/2 "2022-01-16T14:32:56Z")

</div>

Desmos doesn’t always parse numbers with commas. For example, if you try graphing `y=1,200x` in the graphing calculator, it thinks you are trying to type an ordered pair. I don’t know if there’s a workaround, but you could set an errorMessage if the equation is undefined.

```auto
equation = parseEquation(this.latex)

errorMessage:
   when isUndefined(equation) "Enter an equation without commas."
   otherwise ""

```
