Compile-time rational arithmetic
De cppreference.com
[] |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
<metanoindex/>
Le
std::ratio modle de classe et de fournir des modles associs la compilation de soutien arithmtique rationnelle. Chaque instanciation de ce modle reprsente exactement un nombre raisonnable fini .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.
Compilation fractions
Defined in header
<ratio> | |
reprsente exacte fraction rationnelle 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. (classe gnrique) | |
Plusieurs dpanneurs typedefs qui correspondent aux ratios SI sont fournies par la bibliothque standard:
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 d'
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>, si std::intmax_t peut reprsenter le dnominateurOriginal: 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>, si std::intmax_t peut reprsenter le dnominateurOriginal: 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>, si std::intmax_t peut reprsenter le numrateurOriginal: 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>, si std::intmax_t peut reprsenter le numrateurOriginal: 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. |
Moment de la compilation arithmtique rationnelle
Plusieurs modles de classe, qui effectuent des oprations arithmtiques sur des objets
ratio au moment de la compilation sont fournis .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> | |
(C++11) |
ajoute deux objets ratio au moment de la compilation Original: adds two ratio objects at compile-time The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (classe gnrique) |
(C++11) |
soustrait deux objets ratio au moment de la compilation Original: subtracts two ratio objects at compile-time The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (classe gnrique) |
(C++11) |
multiplie deux objets ratio au moment de la compilation Original: multiplies two ratio objects at compile-time The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (classe gnrique) |
(C++11) |
divise deux objets ratio au moment de la compilation Original: divides two ratio objects at compile-time The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (classe gnrique) |
Moment de la compilation comparaison rationnelle
Plusieurs modles de classe, qui effectuent des oprations sur des objets de comparaison
ratio au moment de la compilation sont fournis .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> | |
(C++11) |
compare deux objets ratio de l'galit au moment de la compilation Original: compares two ratio objects for equality at compile-time The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (classe gnrique) |
(C++11) |
compare deux objets ratio de l'ingalit au moment de la compilation Original: compares two ratio objects for inequality at compile-time The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (classe gnrique) |
(C++11) |
compare deux objets ratio pour moins au moment de la compilation Original: compares two ratio objects for less than at compile-time The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (classe gnrique) |
(C++11) |
compare deux objets ratio pour infrieur ou gal au moment de la compilationOriginal: compares two ratio objects for less than or equal to at compile-timeThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (classe gnrique) |
(C++11) |
compare deux objets ratio pour suprieure lors de la compilation Original: compares two ratio objects for greater than at compile-time The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (classe gnrique) |
(C++11) |
compare deux objets ratio pour suprieur ou gal au moment de la compilation Original: compares two ratio objects for greater than or equal to at compile-time The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (classe gnrique) |