Skip to content

Commit

Permalink
Added prefixes for electronvolt (eV).
Browse files Browse the repository at this point in the history
Updated electronvolt definition, fixed KeV -> keV.
  • Loading branch information
Atmelfan committed Aug 7, 2020
1 parent ae82174 commit ff3e790
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/si/energy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ quantity! {
@milliwatt_hour: 3.6_E0; "mW · h", "milliwatt hour", "milliwatt hours";
@microwatt_hour: 3.6_E-3; "µW · h", "microwatt hour", "microwatt hours";

@petaelectronvolt: 1.602_176_634_E-4; "PeV", "petaelectronvolt", "petaelectronvolts";
@teraelectronvolt: 1.602_176_634_E-7; "TeV", "teraelectronvolt", "teraelectronvolts";
@gigaelectronvolt: 1.602_176_634_E-10; "GeV", "gigaelectronvolt", "gigaelectronvolts";
@megaelectronvolt: 1.602_176_634_E-13; "MeV", "megaelectronvolt", "megaelectronvolts";
@kiloelectronvolt: 1.602_176_634_E-16; "keV", "kiloelectronvolt", "kiloelectronvolts";
@hectoelectronvolt: 1.602_176_634_E-17; "heV", "hectoelectronvolt", "hectoelectronvolts";
@decaelectronvolt: 1.602_176_634_E-18; "daeV", "decaelectronvolt", "decaelectronvolts";
@electronvolt: 1.602_176_634_E-19; "eV", "electronvolt", "electronvolts";

@btu_it: 1.055_056_E3; "Btu (IT)", "British thermal unit (IT)",
"British thermal units (IT)";
@btu: 1.054_350_E3; "Btu", "British thermal unit", "British thermal units";
Expand All @@ -62,7 +71,6 @@ quantity! {
@calorie_20: 4.181_90_E0; "cal₂₀", "calorie (20 °C)", "calories (20 °C)";
@calorie_it_nutrition: 4.186_8_E3; "Cal (IT)", "Calorie (IT)", "Calories (IT)";
@calorie_nutrition: 4.184_E3; "Cal", "Calorie", "Calories";
@electronvolt: 1.602_177_E-19; "eV", "electronvolt", "electronvolts";
@erg: 1.0_E-7; "erg", "erg", "ergs";
@foot_poundal: 4.214_011_E-2; "ft · pdl", "foot poundal", "foot poundals";
@foot_pound: 1.355_818_E0; "ft · lbf", "foot pound-force",
Expand Down

0 comments on commit ff3e790

Please sign in to comment.