std::abs(int), std::labs, std::llabs, std::imaxabs
De cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| Definido en la cabecera <cstdlib>
|
||
| int abs( int n ); |
||
| long abs( long n ); |
||
| long long abs( long long n ); |
(desde C++11) | |
| long labs( long n ); |
||
| long long llabs( long long n ); |
(desde C++11) | |
| Definido en la cabecera <cinttypes>
|
||
| std::intmax_t abs( std::intmax_t n ); |
(desde C++11) | |
| std::intmax_t imaxabs( std::intmax_t n ); |
(desde C++11) | |
Calcula el valor absoluto de un número entero .
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.
[editar] Parámetros
| n | - | valor entero
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. |
[editar] Valor de retorno
el valor absoluto de
n (es decir |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.
[editar] Ver también
| valor absoluto de un valor de punto flotante (|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. (función) | |
| devuelve la magnitud de un número complejo 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. (plantilla de función) | |
| se aplica la std::abs función a cada elemento 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. (plantilla de función) |

