-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |