# Divide one Decimal by Another with JavaScript - Not letting me get 2.2

**URL:** <https://forum.freecodecamp.org/t/divide-one-decimal-by-another-with-javascript-not-letting-me-get-2-2/153122>\
**Category:** General\
**Created:** [October 14, 2017, 11:56am UTC](https://forum.freecodecamp.org/t/divide-one-decimal-by-another-with-javascript-not-letting-me-get-2-2/153122 "2017-10-14T11:56:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcne65](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/mcne65/32/61920_2.png) [@mcne65](https://forum.freecodecamp.org/u/mcne65)\
**Post date:** [October 14, 2017, 11:56am UTC](https://forum.freecodecamp.org/t/divide-one-decimal-by-another-with-javascript-not-letting-me-get-2-2/153122/1 "2017-10-14T11:56:12Z")

</div>

**Tell us what’s happening:**

**Your code so far**

```auto
var quotient = 4.0 / 2.0;

```

**Your browser information:**

Your Browser User Agent is: `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36`.

**Link to the challenge:**  
[https://www.freecodecamp.org/challenges/divide-one-decimal-by-another-with-javascript](https://www.freecodecamp.org/challenges/divide-one-decimal-by-another-with-javascript)

---

<div class="post-metadata">

**Author:** ![lionel-rowe](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/lionel-rowe/32/41877_2.png) [@lionel-rowe](https://forum.freecodecamp.org/u/lionel-rowe)\
**Post date:** [October 14, 2017, 12:19pm UTC](https://forum.freecodecamp.org/t/divide-one-decimal-by-another-with-javascript-not-letting-me-get-2-2/153122/2 "2017-10-14T12:19:59Z")

</div>

It will only give you 2.2 if the value you enter actually gives 2.2 when divided by 2.

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 17, 2021, 8:37pm UTC](https://forum.freecodecamp.org/t/divide-one-decimal-by-another-with-javascript-not-letting-me-get-2-2/153122/3 "2021-01-17T20:37:31Z")

</div>

Closed on January 17, 2021, 8:37pm UTC


