Calculating the value of a string in c# RRS feed

  • Question

  • I need to calculate the value of a string ex. "10(3-1)+2/5*2" and get either a float or a double returned using c# and only using the .net framework available in windows 8.1 Universal apps.<o:p></o:p>

    If the function could handle powers and square-roots and maybe even things like trigonometry that would help a great deal, though that's not essential.<o:p></o:p>

    Thanks in advanced and excuse me for my bad English.<o:p></o:p>

    / Isak<o:p></o:p>

    Wednesday, July 2, 2014 2:28 AM