GithubHelp home page GithubHelp logo

nhope123 / calculator Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3.07 MB

Calculator created with React and typescript

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

License: GNU General Public License v3.0

HTML 5.32% CSS 0.73% JavaScript 5.70% TypeScript 88.25%
react html5 mathjs css3 css-grid typescript calculator math javascript

calculator's Introduction

Calculator

Web base app for performing standard mathematical computations.

Functions

Computational functions include:

  • Multiplication
  • Division
  • Subtraction
  • Addition

Additional function:

  • Clear / Reset

Display

There is a two level display, one for immediate input and another for the acquired equation. The acquired equation is located at the of the display screen followed by the immediate input.

Functionality

  • This Calculator can be operated by the click of Mouse, a Touch pad, the Tab button or a Numeric keypad.
  • Equations containing the following elements can be evaluated:
    • Multiplication
    • Division
    • Addition
    • Subtraction
    • Negative numbers
    • Positive numbers
    • Integer numbers
    • Decimal numbers
  • Integer number cannot begin with a zero.
  • Decimal number cannot begin with multiple zeros before the decimal point.
  • When consecutive computational operators are selected, the last operator is used (excluding the negative (-) sign).
  • Selecting a computational operator after an equal operator will start a new equation containing the result from the previous equation.
  • Selecting a decimal point after an equal operator will start a new equation containing a decimal starting with a zero (0.).
  • Formula logic is used for this Calculator's logic, where order of operation precedence is observed.

Implementation

The following languages, framework and libraries were used in the creation:

Screenshot

Calculator Screenshot

Credit

Acknowledgement

Thank you to Freecodecamp.org for the project idea.

License

Calculator is an open source software licensed as GNU General Public License v3.0

calculator's People

Contributors

nhope123 avatar

Watchers

 avatar

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.