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

Add radioactivity #1345

Merged
merged 2 commits into from
Dec 28, 2023
Merged

Conversation

piotrstenke
Copy link
Contributor

@piotrstenke piotrstenke commented Dec 28, 2023

Added Radioactivity (radioactive decay), along with three units: Bq - Becquerel (SI-derived), Ci - Curie and Rd - Rutherford (both non-SI).

The scope of prefixes is fairly wide (Pico- to Exa- for Becquerel , Pico- to Tera- for Curie and Rutherford) in order to support most common scenarios, like measuring concentration of radioactive elements in a substance (e.g. 10 Bq per m3 of air is considered normal), rate of radioactive decay in electrical parts, Geiger counter scales, cosmic ray interactions or even global inventory of specific radioactive elements (per Wikipedia). It does not, however, support prefixes for things like activity produced by nuclear explosions (values beyond 10^24 Bq), since this seems too niche even for C# devs.

Similar PR was already created a quople years back (#915), but it was never actually merged.

@piotrstenke
Copy link
Contributor Author

If this PR gets accepted, I will continue with more radioactivity-related stuff. Here, feel warned.

@angularsen angularsen merged commit 04958a8 into angularsen:master Dec 28, 2023
1 check passed
@angularsen
Copy link
Owner

Looks perfect to me, thanks!

I think this is a good fit for the library, so any further work on radioactivity is probably also a good fit. Just keep in mind that the library generally tries to strike a balance between providing what most people need, while not adding too many esoteric or very specialized units that will only be useful to a handful of users.

@angularsen
Copy link
Owner

Nuget should be out shortly

Release UnitsNet/5.41.0 · angularsen/UnitsNet

@piotrstenke piotrstenke deleted the add-radioactivity branch December 28, 2023 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants