Skip to content

Instantly share code, notes, and snippets.

@yonilevy
Created May 10, 2011
Embed
What would you like to do?
test1123
// convenience SI typedefs:
typedef ratio<1, 1000000000000000000000000> yocto; // conditionally supported
typedef ratio<1, 1000000000000000000000> zepto; // conditionally supported
typedef ratio<1, 1000000000000000000> atto;
typedef ratio<1, 1000000000000000> femto;
typedef ratio<1, 1000000000000> pico;
typedef ratio<1, 1000000000> nano;
typedef ratio<1, 1000000> micro;
typedef ratio<1, 1000> milli;
typedef ratio<1, 100> centi;
typedef ratio<1, 10> deci;
typedef ratio< 10, 1> deca;
typedef ratio< 100, 1> hecto;
typedef ratio< 1000, 1> kilo;
typedef ratio< 1000000, 1> mega;
typedef ratio< 1000000000, 1> giga;
typedef ratio< 1000000000000, 1> tera;
typedef ratio< 1000000000000000, 1> peta;
typedef ratio< 1000000000000000000, 1> exa;
typedef ratio< 1000000000000000000000, 1> zetta; // conditionally supported
typedef ratio<1000000000000000000000000, 1> yotta; // conditionally supported
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment