Commit 04958a8
Add radioactivity (#1345)
Added Radioactivity (radioactive decay), along with three units:
Bq - Becquerel (SI-derived)
Ci - Curie (non-SI)
Rd - Rutherford (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](https://en.wikipedia.org/wiki/Becquerel#Examples)). It
does not, however, support prefixes for things like activity produced by
[nuclear explosions](https://books.google.pl/books?id=CJqcq2C792UC&pg=PA74&redir_esc=y#v=onepage&q=hiroshima&f=false)
(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.
---------
Co-authored-by: Piotr Stenke <piotr.stenke@nexpertis.pl>1 parent 06c7456 commit 04958a8
18 files changed
Lines changed: 5042 additions & 0 deletions
File tree
- Common
- UnitDefinitions
- UnitsNet.NanoFramework/GeneratedCode
- Quantities
- Radioactivity
- Units
- UnitsNet.NumberExtensions.Tests/GeneratedCode
- UnitsNet.NumberExtensions/GeneratedCode
- UnitsNet.Tests
- CustomCode
- GeneratedCode
- TestsBase
- UnitsNet/GeneratedCode
- Quantities
- Resources
- Units
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1794 | 1794 | | |
1795 | 1795 | | |
1796 | 1796 | | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
| 1801 | + | |
| 1802 | + | |
| 1803 | + | |
| 1804 | + | |
| 1805 | + | |
| 1806 | + | |
| 1807 | + | |
| 1808 | + | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
| 1815 | + | |
| 1816 | + | |
| 1817 | + | |
| 1818 | + | |
| 1819 | + | |
| 1820 | + | |
| 1821 | + | |
| 1822 | + | |
| 1823 | + | |
| 1824 | + | |
| 1825 | + | |
| 1826 | + | |
| 1827 | + | |
1797 | 1828 | | |
1798 | 1829 | | |
0 commit comments