Decimal Unit Prefices
Decimal unit prefices in the metric system for denoting a multiple, or a fraction of, a unit. More...
Variables | |
const PLAYRHO_CONSTEXPR auto | playrho::Centi = Real(1e-2) |
Centi- (1 x 10^-2). More... | |
const PLAYRHO_CONSTEXPR auto | playrho::Deci = Real(1e-1) |
Deci- (1 x 10^-1). More... | |
const PLAYRHO_CONSTEXPR auto | playrho::Kilo = Real(1e3) |
Kilo- (1 x 10^3). More... | |
const PLAYRHO_CONSTEXPR auto | playrho::Mega = Real(1e6) |
Mega- (1 x 10^6). More... | |
const PLAYRHO_CONSTEXPR auto | playrho::Giga = Real(1e9) |
Giga- (1 x 10^9). More... | |
const PLAYRHO_CONSTEXPR auto | playrho::Tera = Real(1e12) |
Tera- (1 x 10^12). More... | |
const PLAYRHO_CONSTEXPR auto | playrho::Peta = Real(1e15) |
Peta- (1 x 10^15). More... | |
const PLAYRHO_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.
Variable Documentation
◆ Centi
const PLAYRHO_CONSTEXPR auto playrho::Centi = Real(1e-2) |
Centi- (1 x 10^-2).
Definition at line 73 of file RealConstants.hpp.
◆ Deci
const PLAYRHO_CONSTEXPR auto playrho::Deci = Real(1e-1) |
Deci- (1 x 10^-1).
Definition at line 77 of file RealConstants.hpp.
◆ Kilo
const PLAYRHO_CONSTEXPR auto playrho::Kilo = Real(1e3) |
Kilo- (1 x 10^3).
Definition at line 81 of file RealConstants.hpp.
◆ Mega
const PLAYRHO_CONSTEXPR auto playrho::Mega = Real(1e6) |
Mega- (1 x 10^6).
Definition at line 85 of file RealConstants.hpp.
◆ Giga
const PLAYRHO_CONSTEXPR auto playrho::Giga = Real(1e9) |
Giga- (1 x 10^9).
Definition at line 89 of file RealConstants.hpp.
◆ Tera
const PLAYRHO_CONSTEXPR auto playrho::Tera = Real(1e12) |
Tera- (1 x 10^12).
Definition at line 93 of file RealConstants.hpp.
◆ Peta
const PLAYRHO_CONSTEXPR auto playrho::Peta = Real(1e15) |
Peta- (1 x 10^15).
Definition at line 97 of file RealConstants.hpp.
◆ Yotta
const PLAYRHO_CONSTEXPR auto playrho::Yotta = Real(1e24) |
Yotta- (1 x 10^24).
Definition at line 101 of file RealConstants.hpp.