Thread: can i convert a string into a math expression?

  1. #1
    Registered User
    Join Date
    Aug 2013
    Posts
    434

    can i convert a string into a math expression?

    imagine these string input:
    23*4 + (4+5*3)
    how can convert these string into a math expression?

  2. #2
    Registered User
    Join Date
    Dec 2017
    Posts
    1,136
    It's already a math expression, isn't it? If you mean "how do I calculate the value of this string that represents a math expression" then you may want to look at the Shunting Yard algorithm.
    The best argument against democracy is a five minute conversation with the average voter. - Churchill

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 11
    Last Post: 11-06-2013, 12:51 AM
  2. Storing Math expression as vector
    By Chucker in forum C++ Programming
    Replies: 1
    Last Post: 04-23-2012, 05:31 PM
  3. Replies: 5
    Last Post: 05-09-2010, 10:58 AM
  4. Expression: Convert infix notation to postfix notation.
    By Nutshell in forum C Programming
    Replies: 7
    Last Post: 02-27-2010, 07:44 AM
  5. Help with making a Math Expression DLL
    By MindWorX in forum C Programming
    Replies: 19
    Last Post: 07-19-2007, 11:37 PM

Tags for this Thread