Dangl.Calculator 1.4.0

Package to evaluate mathematical formulas from strings

Install-Package Dangl.Calculator -Version 1.4.0
dotnet add package Dangl.Calculator --version 1.4.0
<PackageReference Include="Dangl.Calculator" Version="1.4.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Dangl.Calculator --version 1.4.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Dangl.Calculator, 1.4.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Dangl.Calculator as a Cake Addin
#addin nuget:?package=Dangl.Calculator&version=1.4.0

// Install Dangl.Calculator as a Cake Tool
#tool nuget:?package=Dangl.Calculator&version=1.4.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

## v1.4.0:
- The calculator now supports trailing comments in a formula, separated by a semicolon `;` at the end of the actual formula input. For example, `1 + 2; Hello World!` now just evaluates `1 + 2` and ignores everything after the semicolon `;`

## v1.3.1:
- Updates to README

## v1.3.0:
- Add support for substitutions in formulas

## v1.2.1:
- Add `net40` as target framework
- Drop tests for `netcoreapp2.2` and add tests for `netcoreapp3.1`

## v1.2.0
- The generated assemblies now have a strong name. This is a breaking change of the binary API and will require recompilation on all systems that consume this package. The strong name of the generated assembly allows compatibility with other, signed tools. Please note that this does not increase security or provide tamper-proof binaries, as the key is available in the source code per [Microsoft guidelines](https://msdn.microsoft.com/en-us/library/wd40t7ad(v=vs.110).aspx)

## v1.1.5:
- CI tests are now also run on Linux
- Added capability to detect missing multiplication signs, e.g. the formula `3pi` is now recognized as `3*pi` or `2(3)` as `2*(3)`

## v1.1.4:
- Added support for formulas ending with an equals sign `=`

## v1.1.3:
- Dropped tests for `netcoreapp2.0`, added tests for `netcoreapp2.2`
- Update of dependencies

## v1.1.2
- Bugfix: Fixed operator precedence for exponential expression, e.g. `1e+2*2 == 200`

## v1.1.1
- Bugfix: Unary minus signs were not always evaluated to the nearest matching expression, e.g. `-3+5` was evaluated as `-(3+5)`. See [GitHub Issue #1](https://github.com/GeorgDangl/Dangl.Calculator/issues/1)

## v1.1.0
- Dropped test support for .NET Core 1.0 and 1.1
- Updated Antlr4 to latest stable version

## v1.0.6
- Add `netstandard2.0` target
- Switch build system to NUKE

## v1.0.5
- Downgrade to netstandard1.1 and net45 for broader compatibility
   
## v1.0.4
- Update ANTLR to latest version
     
## v1.0.3
- Target NETStandard 1.3

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.4.0 1,938 1/23/2021
1.3.1 92 1/16/2021
1.3.0 103 1/15/2021
1.2.1 159 12/26/2020
1.2.0 20,791 8/5/2019
1.1.5 649 7/12/2019
1.1.4 697 3/8/2019
1.1.3 425 12/28/2018
1.1.2 452 10/19/2018
1.1.1 474 10/9/2018
1.1.0 455 9/15/2018
1.0.6 719 3/19/2018
1.0.5 820 12/15/2017
1.0.4 636 8/11/2017
1.0.3 729 12/5/2016
1.0.2 781 10/4/2016
1.0.1 606 9/25/2016
1.0.0 662 9/25/2016