Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/numeric/math/signbit"

From cppreference.com
< cpp‎ | numeric‎ | math
m (Text replace - "{{mark c++0x feature}}" to "{{mark c++11 feature}}")
m (Text replace - "{{mark c++11 feature}}" to "{{mark since c++11}}")
Line 3: Line 3:
 
{{ddcl list begin}}
 
{{ddcl list begin}}
 
{{ddcl list header | cmath}}
 
{{ddcl list header | cmath}}
{{ddcl list item | notes={{mark c++11 feature}} |
+
{{ddcl list item | notes={{mark since c++11}} |
 
int signbit( float arg );
 
int signbit( float arg );
 
}}
 
}}
{{ddcl list item | notes={{mark c++11 feature}} |
+
{{ddcl list item | notes={{mark since c++11}} |
 
int signbit( double arg );
 
int signbit( double arg );
 
}}
 
}}
{{ddcl list item | notes={{mark c++11 feature}} |
+
{{ddcl list item | notes={{mark since c++11}} |
 
int signbit( long double arg );
 
int signbit( long double arg );
 
}}
 
}}

Revision as of 14:53, 24 December 2011

Template:cpp/numeric/math/sidebar Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <cmath>
</td>

<td></td> <td></td> </tr> <tr class="t-dcl ">

<td >
int signbit( float arg );
</td>

<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">

<td >
int signbit( double arg );
</td>

<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">

<td >
int signbit( long double arg );
</td>

<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> Template:ddcl list end


Determines if the given floating point number arg is negative.

Parameters

arg - floating point value

Return value

nonzero value if arg is negative, Template:cpp otherwise

See also

Template:cpp/numeric/math/dcl list fabsTemplate:cpp/numeric/math/dcl list copysign