File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Evaluating an expression string

 
sreenath reddy
Ranch Hand
Posts: 415
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

In my application where in i have a string saying value = "2+3-4" . Is there any way given this string , i need the mathematical evaluation of the string inside i.e it should give me 1.

I feel the implementation for this will not be that easy , but is there any third party API which has this facility . Else can any one let me know how to go about this . The expression might include * and %

Let me know if there are any options
 
Steve Morrow
Ranch Hand
Posts: 657
Clojure Spring VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://www.beanshell.org/
http://www.singularsys.com/jep/

Among others...
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic