?
Solved

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

Posted on 2005-05-05
6
Medium Priority
?
229 Views
Last Modified: 2010-03-31
hi,experts,
  i have a String like String s=123.0+12+3*(2+3)

how can i get the s'value???
thanks!
0
Comment
Question by:hgbdelphi
  • 3
  • 2
6 Comments
 
LVL 92

Accepted Solution

by:
objects earned 1000 total points
ID: 13940733
0
 
LVL 92

Expert Comment

by:objects
ID: 13940742
or for more serious stuff
jep.sourceforge.net
0
 

Author Comment

by:hgbdelphi
ID: 13940886
hi,objects
  thanks for your hint,but i want not to use 3 party,i want only some code to solve my problem.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 92

Expert Comment

by:objects
ID: 13940938
0
 
LVL 9

Expert Comment

by:OBCT
ID: 13941383
Just concatenate a empty String at the end.
E.g.

String s= (123.0+12+3*(2+3)) + "";
0
 

Author Comment

by:hgbdelphi
ID: 13941487
hi OBCT,i want get the express's value,not string,thanks

objects,thanks,i use jep-2.3.0!!


Best Regard!
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses
Course of the Month14 days, 12 hours left to enroll

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question