hello everybody;
i have a problem, i want to convert a string which is an Equation to double, in order to use each part which is seprate by + or - ;
how can i do that?
thanks a lot for your helps.

Recommended Answers

Well you could parshe the entire string, find out where the delimitters are, then split them.
Perhaps you have some round/square/curly brackets as well, so you'll need to take that into consideration too.
For tokenizing: Click Here
Converting to double:

Jump to Post

All 3 Replies

Well you could parshe the entire string, find out where the delimitters are, then split them.
Perhaps you have some round/square/curly brackets as well, so you'll need to take that into consideration too.
For tokenizing: Click Here
Converting to double: Click Here

thanks dears, i have found it before,but i can't understand it,if it is possible for you ,could you explain it? or if you can send me the code , which is seprate equation entered as a string.
thanks a lot dear Milton and dear Lucaci,

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.