PlayRho  2.0.0
An interactive physics engine & library.
Decimal Unit Prefices

Decimal unit prefices in the metric system for denoting a multiple, or a fraction of, a unit. More...

Variables

constexpr auto playrho::Centi = Real(1e-2)
 Centi- (1 x 10^-2). More...
 
constexpr auto playrho::Deci = Real(1e-1)
 Deci- (1 x 10^-1). More...
 
constexpr auto playrho::Giga = Real(1e9)
 Giga- (1 x 10^9). More...
 
constexpr auto playrho::Kilo = Real(1e3)
 Kilo- (1 x 10^3). More...
 
constexpr auto playrho::Mega = Real(1e6)
 Mega- (1 x 10^6). More...
 
constexpr auto playrho::Peta = Real(1e15)
 Peta- (1 x 10^15). More...
 
constexpr auto playrho::Tera = Real(1e12)
 Tera- (1 x 10^12). More...
 
constexpr auto playrho::Yotta = Real(1e24)
 Yotta- (1 x 10^24). More...
 

Detailed Description

Decimal unit prefices in the metric system for denoting a multiple, or a fraction of, a unit.

Note
std::ratio doesn't necessarily support larger sizes like Yotta or bigger so floating-point literal notation is used instead.
See also
https://en.wikipedia.org/wiki/Metric_prefix

Variable Documentation

◆ Centi

constexpr auto playrho::Centi = Real(1e-2)
constexpr

◆ Deci

constexpr auto playrho::Deci = Real(1e-1)
constexpr

◆ Giga

constexpr auto playrho::Giga = Real(1e9)
constexpr

◆ Kilo

◆ Mega

constexpr auto playrho::Mega = Real(1e6)
constexpr

◆ Peta

constexpr auto playrho::Peta = Real(1e15)
constexpr

◆ Tera

constexpr auto playrho::Tera = Real(1e12)
constexpr

Tera- (1 x 10^12).

See also
https://en.wikipedia.org/wiki/Tera-

◆ Yotta

constexpr auto playrho::Yotta = Real(1e24)
constexpr