Skip to content

Added prefixes for electronvolt (eV)#200

Merged
iliekturtles merged 1 commit into
iliekturtles:masterfrom
Atmelfan:master
Aug 7, 2020
Merged

Added prefixes for electronvolt (eV)#200
iliekturtles merged 1 commit into
iliekturtles:masterfrom
Atmelfan:master

Conversation

@Atmelfan

@Atmelfan Atmelfan commented Aug 6, 2020

Copy link
Copy Markdown
Contributor

Don't know the policy of which units gets prefixes but I needed kiloelectronvolt (KeV) so why not.

@iliekturtles iliekturtles left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! I noted a couple minor fixes in the diff. Once these are resolved we can merge and I'll include in the release I was planning to do today!

Comment thread src/si/energy.rs Outdated
Comment on lines +50 to +57
@petaelectronvolt: 1.602_177_E-4; "PeV", "petaelectronvolt", "petaelectronvolts";
@teraelectronvolt: 1.602_177_E-7; "TeV", "teraelectronvolt", "teraelectronvolts";
@gigaelectronvolt: 1.602_177_E-10; "GeV", "gigaelectronvolt", "gigaelectronvolts";
@megaelectronvolt: 1.602_177_E-13; "MeV", "megaelectronvolt", "megaelectronvolts";
@kiloelectronvolt: 1.602_177_E-16; "KeV", "kiloelectronvolt", "kiloelectronvolts";
@hectoelectronvolt: 1.602_177_E-17; "heV", "hectoelectronvolt", "hectoelectronvolts";
@decaelectronvolt: 1.602_177_E-18; "daeV", "decaelectronvolt", "decaelectronvolts";
@electronvolt: 1.602_177_E-19; "eV", "electronvolt", "electronvolts";

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for late response. Fixed the conversion factor and KeV -> keV.

@iliekturtles

Copy link
Copy Markdown
Owner

Mind squashing the commits together? I'll merge after that.

Updated electronvolt definition, fixed KeV -> keV.
@iliekturtles iliekturtles merged commit d061f92 into iliekturtles:master Aug 7, 2020
@iliekturtles

Copy link
Copy Markdown
Owner

Merged! Thanks so much for the PR.

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