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. |
Déclaré dans l'en-tête <cmath> | ||
float fdim(float x, float y ); | (1) | (depuis C++11) |
double fdim(double x, double y ); | (2) | (depuis C++11) |
longdouble fdim(longdouble x, longdouble y ); | (3) | (depuis C++11) |
Promoted fdim( Arithmetic x, Arithmetic y ); | (4) | (depuis C++11) |
Retourne la différence positive entre x et 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.
Cela pourrait être mise en œuvre fmax (x - y, 0), si x ≤ y, le résultat est toujours égal à 0, sinon il est 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 un argument est de type intégral, il est jeté à double. Si aucun autre argument est longdouble, puis le type de retour est longdouble, sinon il est double .
Original:
If any argument has integral type, it is cast to double. If any other argument is longdouble, then the return type is longdouble, 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.
[modifier]Paramètres
x, y | - | 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. |
[modifier]Retourne la valeur
La valeur de la différence positive .
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.
[modifier]Voir aussi
(C++11) | 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) |
(C++11) | plus grande des deux valeurs à virgule flottante 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. (fonction) |