# Check out my calculator!

**URL:** <https://forum.freecodecamp.org/t/check-out-my-calculator/25923>\
**Category:** I Built This\
**Created:** [August 6, 2016, 5:59pm UTC](https://forum.freecodecamp.org/t/check-out-my-calculator/25923 "2016-08-06T17:59:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![alichristensen](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/alichristensen/32/24081_2.png) [@alichristensen](https://forum.freecodecamp.org/u/alichristensen)\
**Post date:** [August 6, 2016, 5:59pm UTC](https://forum.freecodecamp.org/t/check-out-my-calculator/25923/1 "2016-08-06T17:59:11Z")

</div>

Hi everyone, I think I’m just about finished with my calculator and I would love some help looking for bugs:

> **[React Calculator](https://codepen.io/eac/full/PzBWXm)**
>
> ...

I’ve had a lot of problems with chaining so the equals button has to be clicked before adding additional operators. This is my first project using React so bear with me 😬

---

<div class="post-metadata">

**Author:** ![Beekey](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@Beekey](https://forum.freecodecamp.org/u/Beekey)\
**Post date:** [August 6, 2016, 7:22pm UTC](https://forum.freecodecamp.org/t/check-out-my-calculator/25923/2 "2016-08-06T19:22:54Z")

</div>

Hi,

Very unusual and unique calculator design. I like it. You could add some padding to the input field, so the digits wouldn’t stick to the side.  
I am not sure that having to press the equals button qualifies as chaining. I’d come up with a way to avoid that. You can either come up with an algorithm to do it (this is what I did and it’s not that hard) or use eval() as I’ve seen a lot of people do in their calculators.  
When using - as the operation the input splits in two and the second number prints in a new line pushing the bottom part of the calculator down.  
You allow unlimited digits to be entered. Eventually they flow out of the screen.  
That includes multiple zeros before a non zero digit. The only time an entry should be allowed to start with 0 is when it starts with **0.**  
The calculator interprets **.dddd** as **dddd** when in fact it should be interpreting it as **0.dddd**

I am curious, why did you choose to use React to make the calculator?

---

<div class="post-metadata">

**Author:** ![alichristensen](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/alichristensen/32/24081_2.png) [@alichristensen](https://forum.freecodecamp.org/u/alichristensen)\
**Post date:** [August 8, 2016, 3:39am UTC](https://forum.freecodecamp.org/t/check-out-my-calculator/25923/3 "2016-08-08T03:39:34Z")

</div>

Thanks for your feedback, I’m going to work on fixing some of these tonight. As for using React, there wasn’t a particular reason I just wanted more practice with it

---

<div class="post-metadata">

**Author:** ![PortableStick](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/portablestick/32/65591_2.png) [@PortableStick](https://forum.freecodecamp.org/u/PortableStick)\
**Post date:** [August 8, 2016, 2:27pm UTC](https://forum.freecodecamp.org/t/check-out-my-calculator/25923/4 "2016-08-08T14:27:47Z")

</div>

This looks really good. I can only add one thing. When there’s only a 0 in the entry box, I can delete it, which leaves the display blank and collapses it.

---

<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:** [June 1, 2021, 6:09pm UTC](https://forum.freecodecamp.org/t/check-out-my-calculator/25923/6 "2021-06-01T18:09:55Z")

</div>

Closed on June 1, 2021, 6:09pm UTC


