std::fdim
cppreference.com
[] |
Google. . , . , . |
<metanoindex/>
<tbody> </tbody> float fdim( float x, float y ); |
(1) | ( C++11) |
double fdim( double x, double y ); |
(2) | ( C++11) |
long double fdim( long double x, long double y ); |
(3) | ( C++11) |
Promoted fdim( Arithmetic x, Arithmetic y ); |
(4) | ( C++11) |
fmax (x - y, 0), x y, 0, x - y.:
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.4)
- ,
double. long double, long double, double.:
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.| x, y |
.
.
(C++11) |
(\(\small{|x|}\)|x|) () |
(C++11)(C++11)(C++11) |
() |