fdim
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 <math.h> | ||
float fdimf(float x, float y ); | ||
double fdim(double x, double y ); | ||
longdouble fdiml(longdouble x, longdouble y ); | ||
Restituisce la differenza positiva tra x e 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.
Questo potrebbe essere implementato come fmax(x - y, 0), quindi se x ≤ y, il risultato è sempre uguale a 0, altrimenti è x - y.
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.
[modifica]Parametri
x, y | - | valore in virgola mobile 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. |
[modifica]Valore di ritorno
Il valore di differenza 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.
[modifica]Vedi anche
(C99) | calcola il valore assoluto di un valore integrale (|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. (funzione) |
(C99) | più elevato tra due valori in virgola mobile 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. (funzione) |
C++ documentation for fdim |