Skip to content

Commit

Permalink
Add prefix file
Browse files Browse the repository at this point in the history
  • Loading branch information
paholg committed Oct 26, 2016
1 parent 4da13f1 commit 67ff418
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/unit_systems/prefixes.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#![allow(non_upper_case_globals, missing_docs)]
pub const exa: f64 = 1e18;
pub const peta: f64 = 1e15;
pub const tera: f64 = 1e12;
pub const giga: f64 = 1e9;
pub const mega: f64 = 1e6;
pub const kilo: f64 = 1e3;
pub const hecto: f64 = 1e2;
pub const deca: f64 = 1e1;

pub const deci: f64 = 1e-1;
pub const centi: f64 = 1e-2;
pub const milli: f64 = 1e-3;
pub const micro: f64 = 1e-6;
pub const nano: f64 = 1e-9;
pub const pico: f64 = 1e-12;
pub const femto: f64 = 1e-15;
pub const atto: f64 = 1e-18;

0 comments on commit 67ff418

Please # to comment.