Code Monkey home page Code Monkey logo

calculator-rlmoser's Introduction

Calculator

This project is from The Odin Project. This project was completed before TOP clarified the instructions to only evaluate a single pair of numbers at a time. If you are doing TOP, do not attempt to re-create this functionality!

Code, Re-Factor, Repeat...

I had to re-factor my work several times as I realized how different functions and variables interacted with each other. I hope to learn more on how to plan and execute a project like this more efficiently. As I am learning, I just took everything one step at time and then re-factor when necessary.

Regex is AMAZING!

I really enjoyed working with regular expressions and probably over-used them to format the display numbers.

Order of Operations

The calculator is not 100% scientifically accurate. Although, I did use the order of operations published by Wolfram:

  1. Parenthesis
  2. Factorial
  3. Exponentiation
  4. Multiplication and division
  5. Addition and subtraction

calculator-rlmoser's People

Contributors

rlmoser99 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.