fdim
Da 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 no cabeçalho <math.h>
|
||
float fdimf( float x, float y ); |
||
double fdim( double x, double y ); |
||
long double fdiml( long double x, long double y ); |
||
Retorna a diferença positiva entre 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.
Isto pode ser implementado como fmax (x - y, 0), por isso, se x ≤ y, o resultado é sempre igual a 0, caso contrário é 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.
[editar] Parâmetros
x, y | - | flutuando valor de ponto
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
O valor da diferença 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] Veja também
(C99) |
calcula o valor absoluto de um valor 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. (função) |
(C99) |
maior de dois valores de ponto flutuante 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. (função) |
C++ documentation for fdim
|