https://github.com/juptian/calculator
calcumator
https://github.com/juptian/calculator
calculator calculator-cs calculator-csharp csharp csharp-code csharpcode
Last synced: 10 months ago
JSON representation
calcumator
- Host: GitHub
- URL: https://github.com/juptian/calculator
- Owner: Juptian
- License: mit
- Created: 2021-02-14T22:51:36.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-15T00:43:20.000Z (almost 5 years ago)
- Last Synced: 2024-12-29T15:27:49.920Z (12 months ago)
- Topics: calculator, calculator-cs, calculator-csharp, csharp, csharp-code, csharpcode
- Language: C#
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Calculator
Lucas ( https://github.com/lucasstarsz/ ) gave me 2 hours to make a basic calculator including the following operations:
- +, minus,
- *, /,
- ^, (), and %
Lets see how this goes
I decided to say no to the `()` because I had only 40 minutes and I spent the first 40 minutes trying to figure out the parsing before I realized C# did it ***for*** me, so that's what `JupIsDumb.cs` is. Overall it was fun ish, once I realized C# does the hard work it was super easy going. I'd have to add the priority of opertations, as currently it just goes left to right, but that's fine. Still not a bad calculator!