◐ Shell
clean mode source ↗

std::abs<div class="t-tr-text">(Float)<div class="t-tr-dropdown"><div><div><div class="t-tr-dropdown-arrow-border"></div><div class="t-tr-dropdown-arrow"></div><div class="t-tr-dropdown-h">Original:</div><div class="t-tr-dropdown-orig">(float)</div><div class="t-tr-dropdown-notes">The text has been machine-translated via [http://translate.google.com Google Translate].<br/> You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.</div></div></div></div></div>, std::fabs

De cppreference.com

<metanoindex/>

<tbody> </tbody>

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

<cmath>

float abs( float arg );

double abs( double arg );

long double abs( long double arg );

float fabs( float arg );

double fabs( double arg );

long double fabs( long double arg );

double fabs( Integral arg );

(depuis C++11)

Calcule la valeur absolue d'une valeur à virgule flottante arg .

Original:

Computes the absolute value of a floating point value 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

la valeur absolue de arg (|arg|)

Original:

the absolute value of arg (|arg|)

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

Voir aussi

calcule la valeur absolue d'une valeur intégrale (|x|)

Original:

computes absolute value of an integral value (|x|)

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)

vérifie si le nombre donné est négatif

Original:

checks if the given number is negative

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


(fonction) [edit]

renvoie l'amplitude d'un nombre complexe

Original:

returns the magnitude of a complex number

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


(fonction générique) [edit]

applique la fonction std::abs à chaque élément de valarray

Original:

applies the function std::abs to each element of valarray

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


(fonction générique) [edit]