DhanushNehru / calculator

An online calculator
https://calculator-dhanushnehru.netlify.app/
MIT License
24 stars 75 forks source link

Fixed Issue #58, "Repetition of "." when clicked multiple times". #90

Closed Regularmute closed 2 years ago

Regularmute commented 2 years ago

Hello!

I added a function in index.js that checks if it's "legal" to add a decimal point to the calculator. If there has not been an operand '+', '-', '*', '/', '(', ')' or '^' since the previous decimal point, the calculator won't let the user add another one. I have documented details and progress in the commit messages.

Hope this works out and helps, this is my first ever pull request with an actual project! Have a nice weekend!

Sincerely,

Regularmute

netlify[bot] commented 2 years ago

Deploy Preview for calculator-dhanushnehru ready!

Name Link
Latest commit 9e219d76f0a69b076376cbac49b65dab9aceacc1
Latest deploy log https://app.netlify.com/sites/calculator-dhanushnehru/deploys/636d7ca0464fb200086cee52
Deploy Preview https://deploy-preview-90--calculator-dhanushnehru.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

selemondev commented 2 years ago

Thanks @Regularmute for your contribution ✨