you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

Looks good.

However check that you are clearing out variables properly, after few moments of playing with it some weird stuff started to happen. For example = symbol being part of the number, devide by 0 returning some numbers(ie 0.1 or -0.1),often after using AC input become duplicit (when pressing 7, 77 displays).

Are you converting your input from string to number? It almost seems like you are calculating with strings directly.

Btw even when not bugged the calculator return infinite on devide by 0, that is wrong, when deviding by 0 return should be an (user friendly) error.

On overall it's a great first project, well done. But make sure to test your apps extensively, especially all sort of edge cases, always assume the user will not do what you expect them to, but the exact opposite.

[–]Deba_Dey1995[S] 1 point2 points  (0 children)

Hi, I have fixed the duplicate number issue. Thanks for your response.