std::fdim
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. |
Defined in header <cmath>
|
||
float fdim( float x, float y ); |
(1) | (desde C++11) |
double fdim( double x, double y ); |
(2) | (desde C++11) |
long double fdim( long double x, long double y ); |
(3) | (desde C++11) |
Promoted fdim( Arithmetic x, Arithmetic y ); |
(4) | (desde C++11) |
Devuelve la diferencia positiva entre x y y .
Original:
Returns the positive difference between x and y.
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.
Esto podría ser implementado como fmax (x - y, 0), así que si x ≤ y, el resultado es siempre igual a 0, de lo contrario es x - y .
4) Original:
This could be implemented as fmax (x - y, 0), so if x ≤ y, the result is always equals to 0, otherwise it is x - y.
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.
Si algún argumento es de tipo integral, que se convierte en double. Si cualquier otro argumento es long double, entonces el tipo de retorno es long double, de lo contrario es double .
Original:
If any argument has integral type, it is cast to double. If any other argument is long double, then the return type is long double, otherwise it is double.
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
x, y | - | flotando valor en puntos
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. |
[editar] Valor de retorno
El valor de la diferencia positiva .
Original:
The positive difference value.
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
(C++11) |
calcula el valor absoluto de un valor de la integral (|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. (función) |
(C++11) |
mayor de los dos valores de punto flotante Original: larger of two floating point values The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) |