Web Based SaaS Calculator

October 21, 2011
I wrote these 300-some-odd lines of code just to poke fun at the whole cloud thing. At least you get to see some cool internals under this calculator.



Internals


Don't lie, you never used the Windows® version of the calculator because it's great at math, you used it because it had mystery tactics, right? Well, I left all the beans spilled below, for your voyeuring pleasure.

Please make sure you mentally note that this calculator might have bugs, and these bugs might mean your math is wrong, and that might mean you launch Apollo 13 due to miscalculations. Think about it, I'm a server-side developer, dabbling in front-side design and development. It's like saying your local mechanic is good at painting cars too.

Oh, and if you can't find the calculator, it's not an image above... That's actually it.

Memory:
Operand:
Operator:
Memory - This is what stores the number you use in the "MR, MS, MC, M+, and M-" operations.
Operand - Value to be operated upon.
Operator - Actual sign to perform the next operation.

Final note: This calculator won't follow all of the characteristics of the Windows calculator. I didn't really design it that way because that seemed too cool, and cool usually = patents. For example, showing the history above the display, or making super awesome modes that take into consideration different bit value amounts, or operator precedence, or figuring out your gas mileage (did you know the Windows one did that? Well don't use it. It's basic math. LRN2+-/*=.)