Difference between revisions of "cpp/numeric/math/islessgreater"
From cppreference.com
(+) |
m (r2.7.3) (Robot: Adding de, es, fr, it, ja, pt, ru, zh) |
||
Line 35: | Line 35: | ||
{{dcl list template | cpp/numeric/math/dcl list isgreater}} | {{dcl list template | cpp/numeric/math/dcl list isgreater}} | ||
{{dcl list end}} | {{dcl list end}} | ||
+ | |||
+ | [[de:cpp/numeric/math/islessgreater]] | ||
+ | [[es:cpp/numeric/math/islessgreater]] | ||
+ | [[fr:cpp/numeric/math/islessgreater]] | ||
+ | [[it:cpp/numeric/math/islessgreater]] | ||
+ | [[ja:cpp/numeric/math/islessgreater]] | ||
+ | [[pt:cpp/numeric/math/islessgreater]] | ||
+ | [[ru:cpp/numeric/math/islessgreater]] | ||
+ | [[zh:cpp/numeric/math/islessgreater]] |
Revision as of 21:49, 2 November 2012
Template:ddcl list begin <tr class="t-dsc-header">
<td>Defined in header
</td>
<cmath>
<td></td> <td></td> </tr> <tr class="t-dcl ">
<td >bool islessgreater( float x, float y );
</td>
<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">
<td >bool islessgreater( double x, double y );
</td>
<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">
<td >bool islessgreater( long double x, long double y );
</td>
<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> Template:ddcl list end
Determines if the floating point number x
is less than or greater than the floating-point number y
, without setting floating-point exceptions.
Contents |
Parameters
x | - | floating point value |
y | - | floating point value |
Return value
true if x < y || x > y, false otherwise
Notes
The built-in operator< and operator> for floating-point numbers may raise FE_INVALID if one or both of the arguments is NaN. This function is a "quiet" version of the expression x < y || x > y.