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