GithubHelp home page GithubHelp logo

bernardo-castilho / calcengine Goto Github PK

View Code? Open in Web Editor NEW
58.0 58.0 37.0 87 KB

A C# implementation of a calculation engine that is small, fast, and extensible.

License: MIT License

C# 100.00%

calcengine's People

Contributors

bernardo-castilho avatar daniel-thwaites-iris avatar floradu88 avatar josh-perry-iris avatar massimofabbri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

calcengine's Issues

NUGet Package

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.

In debug, there is an exception during tests because 1 234,00 is returned when 1,234.00 is expected

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

Documentation

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

Run CalcEngine in SQL Server

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:

  • MathTrig.cs, Row 216: "static readonly Random _rnd = new Random();
  • Expression.cs, Row 27: static readonly CultureInfo _ci = CultureInfo.InvariantCulture;

If you could adopt those changes, that would allow to use your library as a "safe" under SQL Server without manual changes.

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).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.