Jason Hyman's Homepage

EXPRESSION EVALUATOR



This is a numerical, infix expression evaluator which obeys the order of operations. Spaces do not matter. This is an extension of an assignment I did for CP SC 102.

Updates to the Original Assignment

Supports floating point operands in addition to integer operands

Operators Supported

+ - * / ( )

Example Input

2+3
2     +3.5
( 4 - 2.5 / ( -1 ) )
4*(1/2)*(1/4)-1/6

Applet



Last updated: 8/9/2005
Send comments to me here.
Copyright 2005 Jason Hyman
Version 2.0