Giter Site home page Giter Site logo

andrewagain / calculator Goto Github PK

View Code? Open in Web Editor NEW
1.2K 43.0 2.0K 5.12 MB

Simple calculator built with React

Home Page: https://ahfarmer.github.io/calculator/

License: MIT License

HTML 7.45% CSS 12.30% JavaScript 80.25%
react calculator minimal example-project

calculator's People

Contributors

alexanderjordanbaker avatar andrewagain avatar dprasad09 avatar gfazioli avatar mansya avatar mtsaet avatar vikasv996 avatar zoop-ad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

calculator's Issues

Calculator makes the sum of the two previous numbers before multiplying

I tried out the calculator and I figured out when you do (3+3*3), your calculator adds the 3+3 as soon as you click multiply (this should only happen when + or - is clicked for the second time, not * or /). This results in the answer being equal to 18 instead of the correct answer, 12.

The leftmost zero in a number

When start clicking number buttons everything is ok, but if I start number with 0 this zero remains, while it should be overriten by the next non-zero number :)

doesn't support key presses

it would be great if this calculator support keypresses because it will reduce unnecessary mouse moves and clicks

The site is not up to date

ahfarmer.github.io/calculator is not up to date. The site shows a calculation error. This is what i found.

When i click the multiply button twice after entering the value, the output shows as 0

Above error doesn't show when the project is run locally.

duplicating of tier 5 seeds

when you place a tier 5 inferium seed from mystical agriculture into a advanced greenhouse it will duplicate the inferium seed

forge =V 14.23.1.2562
calculator =V 1.12.2-5.0.1
mystical agriculture = V 1.12-1.6.6

Not showing percentage result

Paste below code into calculate.js file
`
if(buttonName === '%') {
if (obj.next && obj.operation) {
return {
total: operate(obj.total, obj.next, '%'),
next: null,
operation: null,
};
} else {
// '=' with no operation, nothing to do
return {};
}
}

`

Issue will be solved and show percentage result
Thanks

New logo

Hi, @ahfarmer I am a graphic designer, I want to help others in graphic design.

After I reviewed your project, you have no logo on this project. Therefore I want to contribute to this project by creating a new logo / icon. what do you think?

Class binding in Button.js

Should the classes be binded in a some React-native way instead of inside the render method trough join?

Issue with Regex in isNumber.js

The regex written is /[0-9]+/
It would return true even if there are any other characters in the string.
If the regex is /^[0-9]+$/, it specifies there should not be any characters other than numbers.
Please look into this.

Error: [big.js] Division by zero

Hello,

When you divise by 0 you have :
Error: [big.js] Division by zero

Can be fixed in operate.js Line 16 like that :
if (two === "0") { => if (two == "0") {

Have a good day

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.