Code Calculator
This calculator uses a technique called runtime compiling to turn whatever you type into program code.
Provided the expression is legal C# code (that can be simplified to a value), this calculator can work out the result.
It can handle regular arithmetic expressions, boolean expressions, string handling and much more.
Provided the expression is legal C# code (that can be simplified to a value), this calculator can work out the result.
It can handle regular arithmetic expressions, boolean expressions, string handling and much more.
We made this calculator in the hope that it would help novice programmers better understand expressions:
 When are they valid/invalid?
 What will the resulting type be, and why?
 How will a single extra operation change things?
It's not just for programmers though, you can use this for any endeavour that would benefit from a powerful calculator  engineering, maths, physics, finances, chemistry, etc...
Alternatively, an inbrowser JavaScript version:
We are always improving our programs, so any feedback would be most welcome:

Liked this program?
Help us make more like it by donating. 