std::abs(int), std::labs, std::llabs, std::imaxabs
Da cppreference.com.
|
|
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
<metanoindex/>
<tbody> </tbody>| Elemento definito nell'header <cstdlib>
|
||
int abs( int n ); |
||
long abs( long n ); |
||
long long abs( long long n ); |
(dal C++11) | |
long labs( long n ); |
||
long long llabs( long long n ); |
(dal C++11) | |
| Elemento definito nell'header <cinttypes>
|
||
std::intmax_t abs( std::intmax_t n ); |
(dal C++11) | |
std::intmax_t imaxabs( std::intmax_t n ); |
(dal C++11) | |
Calcola il valore assoluto di un numero intero.
Original:
Computes the absolute value of an integer 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.
Parametri
| n | - | valore intero
Original: integer value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Valore di ritorno
il valore assoluto di
n (ossia |n|)Original:
the absolute value of
n (i.e. |n|)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.
Vedi anche
valore assoluto di un valore in virgola mobile (|x|) Original: absolute value of a floating point value (|x|) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) | |
restituisce la grandezza di un numero complesso 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. (funzione di modello) | |
applica la std::abs funzione a ogni elemento di 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. (funzione di modello) | |