◐ Shell
clean mode source ↗

Compile-time rational arithmetic — cppreference.com

De cppreference.com

<metanoindex/>

Le std::ratio modèle de classe et de fournir des modèles associés à la compilation de soutien arithmétique rationnelle. Chaque instanciation de ce modèle représente 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.

Compilation fractions

Defined in header <ratio>

représente 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 générique)

Plusieurs dépanneurs typedefs qui correspondent aux ratios SI sont fournies par la bibliothèque 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.

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 représenter le dénominateur

Original:

std::ratio<1, 1000000000000000000000000>, if std::intmax_t can represent the denominator

The 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 représenter le dénominateur

Original:

std::ratio<1, 1000000000000000000000>, if std::intmax_t can represent the denominator

The 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 représenter le numérateur

Original:

std::ratio<1000000000000000000000, 1>, if std::intmax_t can represent the numerator

The 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 représenter le numérateur

Original:

std::ratio<1000000000000000000000000, 1>, if std::intmax_t can represent the numerator

The 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 arithmétique rationnelle

Plusieurs modèles de classe, qui effectuent des opérations arithmétiques 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.

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 générique) [edit]

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 générique) [edit]

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 générique) [edit]

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 générique) [edit]

Moment de la compilation comparaison rationnelle

Plusieurs modèles de classe, qui effectuent des opérations 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.

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 générique) [edit]

compare deux objets ratio de l'inégalité 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 générique) [edit]

(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 générique) [edit]

compare deux objets ratio pour inférieur ou égal à au moment de la compilation

Original:

compares two ratio objects for less 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 générique) [edit]

compare deux objets ratio pour supérieure 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 générique) [edit]

compare deux objets ratio pour supérieur 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 générique) [edit]