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. Making a maths solver

Making a maths solver

Scheduled Pinned Locked Moved C#
csharpdatabasetutorialquestion
4 Posts 3 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.
  • M Offline
    M Offline
    Matt Cavanagh
    wrote on last edited by
    #1

    Hi, in my database I have a bunch of sums which for example can be broken down to (100*25)/3 or whatever the case may be. How would I work out programatically the sum in the string in my C# app? Thanks.

    Strive to be humble enough to take advice, and confident enough to do something about it.

    R P 2 Replies Last reply
    0
    • M Matt Cavanagh

      Hi, in my database I have a bunch of sums which for example can be broken down to (100*25)/3 or whatever the case may be. How would I work out programatically the sum in the string in my C# app? Thanks.

      Strive to be humble enough to take advice, and confident enough to do something about it.

      R Offline
      R Offline
      Rob Philpott
      wrote on last edited by
      #2

      Good question. I had thought .NET provided something for doing that sort of thing, but can't find it. There are a number of projects on the net which provide functionality for doing that sort of thing. Here's one: http://www.bestcode.com/html/bcparser_net.html

      Regards, Rob Philpott.

      M 1 Reply Last reply
      0
      • R Rob Philpott

        Good question. I had thought .NET provided something for doing that sort of thing, but can't find it. There are a number of projects on the net which provide functionality for doing that sort of thing. Here's one: http://www.bestcode.com/html/bcparser_net.html

        Regards, Rob Philpott.

        M Offline
        M Offline
        Matt Cavanagh
        wrote on last edited by
        #3

        Nice find, thanks :). Found a free one here: http://www.c-sharpcorner.com/UploadFile/patricklundin/MathExpParser12062005062213AM/MathExpParser.aspx[^] which also seems quite powerful.

        Strive to be humble enough to take advice, and confident enough to do something about it.

        1 Reply Last reply
        0
        • M Matt Cavanagh

          Hi, in my database I have a bunch of sums which for example can be broken down to (100*25)/3 or whatever the case may be. How would I work out programatically the sum in the string in my C# app? Thanks.

          Strive to be humble enough to take advice, and confident enough to do something about it.

          P Offline
          P Offline
          PIEBALDconsult
          wrote on last edited by
          #4

          Something like this[^]?

          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