Compile-time rational arithmetic
Aus cppreference.com
Das Klassen-Template
std::ratio und zugehörigen Vorlagen bieten Kompilierung rationale Arithmetik-Unterstützung. Jede Instanziierung dieser Vorlage genau eine beliebige endliche rationale Zahl .Original:
The class template
std::ratio and associated templates provide compile-time rational arithmetic support. Each instantiation of this template exactly represents any finite rational number.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Compile-time Fraktionen
Defined in header
<ratio> | |
stellt exakte rationale Fraktion Original: represents exact rational fraction The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Klassen-Template) | |
Mehrere Convenience typedefs, die auf die SI-Verhältnisse entsprechen, werden von der Standard-Bibliothek zur Verfügung:
Original:
Several convenience typedefs that correspond to the SI ratios are provided by the standard library:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Defined in header
<ratio> | |
Type
Original: Type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
yocto
|
std::ratio<1, 1000000000000000000000000>, wenn std::intmax_t können den Nenner darstellenOriginal: std::ratio<1, 1000000000000000000000000>, if std::intmax_t can represent the denominatorThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
zepto
|
std::ratio<1, 1000000000000000000000>, wenn std::intmax_t können den Nenner darstellenOriginal: std::ratio<1, 1000000000000000000000>, if std::intmax_t can represent the denominatorThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
atto
|
std::ratio<1, 1000000000000000000>
|
femto
|
std::ratio<1, 1000000000000000>
|
pico
|
std::ratio<1, 1000000000000>
|
nano
|
std::ratio<1, 1000000000>
|
micro
|
std::ratio<1, 1000000>
|
milli
|
std::ratio<1, 1000>
|
centi
|
std::ratio<1, 100>
|
deci
|
std::ratio<1, 10>
|
deca
|
std::ratio<10, 1>
|
hecto
|
std::ratio<100, 1>
|
kilo
|
std::ratio<1000, 1>
|
mega
|
std::ratio<1000000, 1>
|
giga
|
std::ratio<1000000000, 1>
|
tera
|
std::ratio<1000000000000, 1>
|
peta
|
std::ratio<1000000000000000, 1>
|
exa
|
std::ratio<1000000000000000000, 1>
|
zetta
|
std::ratio<1000000000000000000000, 1>, wenn std::intmax_t können den Zähler darstellenOriginal: std::ratio<1000000000000000000000, 1>, if std::intmax_t can represent the numeratorThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
yotta
|
std::ratio<1000000000000000000000000, 1>, wenn std::intmax_t können den Zähler darstellenOriginal: std::ratio<1000000000000000000000000, 1>, if std::intmax_t can represent the numeratorThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Compile-time rationale Arithmetik
Mehrere Klassen-Templates, die arithmetische Operationen auf
Vorlage:cpp/numeric/ratio/dcl list ratio addVorlage:cpp/numeric/ratio/dcl list ratio subtractVorlage:cpp/numeric/ratio/dcl list ratio multiplyVorlage:cpp/numeric/ratio/dcl list ratio divideratio Objekten zur Compile-Zeit zur Verfügung .Original:
Several class templates, that perform arithmetic operations on
ratio objects at compile-time are provided.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Defined in header
<ratio> |
Compile-time rationale Vergleich
Mehrere Klassen-Templates, die einen Vergleich Operationen auf
Vorlage:cpp/numeric/ratio/dcl list ratio equalVorlage:cpp/numeric/ratio/dcl list ratio not equalVorlage:cpp/numeric/ratio/dcl list ratio lessVorlage:cpp/numeric/ratio/dcl list ratio less equalVorlage:cpp/numeric/ratio/dcl list ratio greaterVorlage:cpp/numeric/ratio/dcl list ratio greater equalratio Objekten zur Compile-Zeit zur Verfügung .Original:
Several class templates, that perform comparison operations on
ratio objects at compile-time are provided.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Defined in header
<ratio> |