Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle Celsius/Kelvin and other +/- delta unit conversions #5

Open
xoofx opened this issue Nov 29, 2020 · 0 comments
Open

Handle Celsius/Kelvin and other +/- delta unit conversions #5

xoofx opened this issue Nov 29, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@xoofx
Copy link
Owner

xoofx commented Nov 29, 2020

kalk is supporting complex conversions with multiple units, but only if they are multiplied or divided or powered.

But today, kalk is not able to express simple conversions like:

[°C] = [K] − 273.15

The code involved is in KalkExpressionSimplifier.cs is relatively basic to simplify units operations (e.g C * km / h can be reduced to C * m / s) but I'm not sure on how to handle the +/- delta easily.

For example a unit °C/m, how would be expressed the right side? (K-273)/m?

@xoofx xoofx added the enhancement New feature or request label Nov 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant