how can i get the maths'expression value???

hi,experts,
  i have a String like String s=123.0+12+3*(2+3)

how can i get the s'value???
thanks!
hgbdelphiAsked:
Who is Participating?
 
objectsCommented:
or for more serious stuff
jep.sourceforge.net
0
 
hgbdelphiAuthor Commented:
hi,objects
  thanks for your hint,but i want not to use 3 party,i want only some code to solve my problem.
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
OBCTCommented:
Just concatenate a empty String at the end.
E.g.

String s= (123.0+12+3*(2+3)) + "";
0
 
hgbdelphiAuthor Commented:
hi OBCT,i want get the express's value,not string,thanks

objects,thanks,i use jep-2.3.0!!


Best Regard!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.