Calculator React.js

Calculator React.js
0.0 0

#1

Made a react version of a calculator for advanced front end development projects.
Would some feedback :slight_smile:


#2

It works, looks great, and the code looks clean. good job!


#3

thank you for the reply, positive feedback is always great :smile:


#4

Problem with this equation: .1 + .2 + .3 = 6


#5

When I type in the same thing, I get 0.6 :slight_smile:


#6

Well I don’t!
0.1 + 8 = 8.10 (trailing zero added?)
10 / 3 = 3.33 it equals 3.33333333 recurring


#7

I’ve spotted a bug : when you type a number then press equal without typing any operation first it completely messes the calculator up : You can still ad number but cannot do any operation so long as you don’t press “clean”. :slight_smile:


#8

Will try to solve this problem :slight_smile:


#9

Thanks, didn’t catch that one. I’m gonna work on it.


#10

You are only getting 0.6 if you enter 0.1 + 0.2 + 0.3 =

You should be able to enter .1 + .2 + .3 = and get 0.6, but your calculator does not allow you to enter a decimal without a preceding number like 0, 1, etc…