Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Evaluating a mathematical equation from a string [modified]

Evaluating a mathematical equation from a string [modified]

Scheduled Pinned Locked Moved C#
help
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    Xodiak
    wrote on last edited by
    #1

    Hey guys, i was just wondering if there is something static funcitn in the Math, or string library that can evaluate a mathematical function...something like the following String problem = "2+2"; Double answer = WonderfulFunction.Evaluate(problem); //wonderful function being the function im looking for... just was wondering if it exists...if not then ill just have to create it...i figured there something out there... Thanking yall in advance, -- modified at 16:33 Tuesday 27th June, 2006

    J 1 Reply Last reply
    0
    • X Xodiak

      Hey guys, i was just wondering if there is something static funcitn in the Math, or string library that can evaluate a mathematical function...something like the following String problem = "2+2"; Double answer = WonderfulFunction.Evaluate(problem); //wonderful function being the function im looking for... just was wondering if it exists...if not then ill just have to create it...i figured there something out there... Thanking yall in advance, -- modified at 16:33 Tuesday 27th June, 2006

      J Offline
      J Offline
      Josh Smith
      wrote on last edited by
      #2

      I've seen articles about classes like that here on CP. Probably searching for "parse" "math" "string" etc. would turn up the result you need.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups