◐ Shell
clean mode source ↗

std::trunc — cppreference.com

De cppreference.com

<metanoindex/>

<tbody> </tbody>

Déclaré dans l'en-tête

<cmath>

float trunc( float arg );

(depuis C++11)

double trunc( double arg );

(depuis C++11)

long double trunc( long double arg );

(depuis C++11)

double trunc( Integral arg );

(depuis C++11)

Entier le plus proche calcule pas de plus grande ampleur que arg .

Original:

Computes nearest integer not greater in magnitude than arg.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Paramètres

arg -

valeur du point flottant

Original:

floating point value

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Retourne la valeur

Entier le plus proche pas de plus grande ampleur que arg .

Original:

Nearest integer not greater in magnitude than arg.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[[Image:

Retourne la valeur

Original:

{{{2}}}

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

|200x200px]]

Argument

Notes

La valeur entière peut toujours être représentée par le type virgule flottante donné .

Original:

The integer value can be always represented by the given floating point type.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Voir aussi

entier le plus proche n'est pas supérieure à la valeur donnée

Original:

nearest integer not greater than the given value

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(fonction) [edit]

entier le plus proche n'est pas inférieure à la valeur donnée

Original:

nearest integer not less than the given value

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(fonction) [edit]

(C++11)
(C++11)
(C++11)

entier le plus proche, arrondi en s'éloignant de zéro dans les cas de transition

Original:

nearest integer, rounding away from zero in halfway cases

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(fonction) [edit]