abs, labs, llabs, 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. |
Elemento definito nell'header <stdlib.h>
|
||
int abs( int n ); |
||
long labs( long n ); |
||
long long llabs( long long n ); |
||
Elemento definito nell'header <inttypes.h>
|
||
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.
[modifica] 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. |
[modifica] Valore di ritorno
Il valore assoluto di
n
(cioè |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.
[modifica] 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) | |
C++ documentation for abs
|