bernardo-castilho / calcengine Goto Github PK
View Code? Open in Web Editor NEWA C# implementation of a calculation engine that is small, fast, and extensible.
License: MIT License
A C# implementation of a calculation engine that is small, fast, and extensible.
License: MIT License
I see that the original Code Project article for this project lists the COPL as the license under this code is released; is that still in effect? If not, is it possible to specify a license in this GitHub project (the MIT license seems the closest, but obviously that's your call).
eg:
SELECT * FROM Customer]
WHERE 1=1
iif( name==null,' ', and name='"+name)
Hello Bernardo,
Thank you for your quick answer. I'm trying to replace another lib with yours in my project but I'm struggling with minor issues. For instance this if(5>0,3,2) returns 3 but I get a syntax error with this if(5>0 and 5>2,3,2). I tried using & also.
Also how can I have variables with white spaces. If I use [x y] I get an exception, same if I try "x y".
I guess these are not issues but improper use that's why I was wondering if there was any documentation that could help me.
If you ever come to release a new version in the future, may I suggest the use of a constants file for the function names and error messages to help with the localization issues.
Thanks a lot for your time and effort as your library is really helping.
Regards
Amar
First thank you very much for this library and the article. And thank you for opening it for everybody, I appreciate it.
I tried to run it as a CLR Component in SQL Server. (That would allow me to calculate formula directly in SQL-Queries). In order to register this library in SQL Server with permission set "safe", I had to mark static variables as readonly in two places:
If you could adopt those changes, that would allow to use your library as a "safe" under SQL Server without manual changes.
Hello,
Thank you for this library. I'm starting a few tests. So I included calcEngine project into my test solution but I have an exception message when I instantiate the calcEngine which is due to the tests being performed.
I don't know if it has an impact anywhere else anyway I thought it was worth mentioning.
My system is configured in french so In debug, there is an exception during tests because 1 234,00 is returned when 1,234.00 is expected.
Thank you
Use Math.Truncate() instead of the casting (double)(int)((double)p[0]);
Hello, thanks a lot for your library!
I would like to reference it as a NUGet Package but, looking at NUGet Gallery, I've only found this package: https://www.nuget.org/packages/CalcEngine.Core
It is a porting for .NET of your CodeProject article, but I'm still using .NET Framework.
Can I help in some way, maybe creating the package and publishing it on the gallery? It's a new task for me, but I'll try to make it.
Please let me know.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.