Namespaces
Variants
Views
Actions

FLT_ROUNDS

From cppreference.com
< cpp‎ | types‎ | climits
Revision as of 18:14, 2 November 2012 by P12bot (Talk | contribs)

 
 
 
Type support
Basic types
Fundamental types
Fixed width integer types (C++11)
Numeric limits
C numeric limits interface
Runtime type information
Type traits
Primary type categories
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
Type properties
(C++11)
(C++11)
(C++11)
(C++14)
Supported operations
Relationships and property queries
(C++11)
(C++11)
(C++11)
(C++11)
Type modifications
(C++11)(C++11)(C++11)
Type transformations
(C++11)
(C++11)
(C++11)
Type trait constants
 
 
Defined in header <cfloat>
#define FLT_ROUNDS /* implementation defined */
(since C++11)

Specifies the rounding direction of floating-point arithmetic operations. Equal to std::float_round_style

Value Explanation
-1 the default rounding direction is not known
0 toward zero
1 to nearest
2 towards positive infinity
3 towards negative infinity
other values implementation-defined behavior

See also

C documentation for FLT_ROUNDS