Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

Convert string to formula

$
0
0

Hi All,

               I developing layered architecture project in asp.net using C Sharp. I am storing the formula in database as string. After selecting the string I need to change it as formula. Whether its possible.

Example:

Input : formula given by user  “(a+b)/c”  store this as string because it change byuser at any time for example it can be “c/(a*b)”.

Now this formula will retrieve from database for calculation. Now another user will enter the values for parameter for “a”, “b” and “c” for above example.

Now in the code I need calculate the result.  How?

Thanks

Prathap


Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>