Namespaces
Variants
Views
Actions

FLT_EVAL_METHOD

From cppreference.com
< c‎ | types‎ | limits
Revision as of 18:36, 9 July 2013 by P12bot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Defined in header <float.h>
#define FLT_EVAL_METHOD /* implementation defined */
(since C99)

Specifies the precision in which all floating-point arithmetic operations are done.

Value Explanation
negative values except -1 implementation-defined behavior
-1 the default precision is not known
0 all operations and constants evaluate in the range and precision of the type used. Additionally, float_t and double_t are equivalent to float and double respectively
1 all operations and constants evaluate in the range and precision of double. Additionally, both float_t and double_t are equivalent to double
2 all operations and constants evaluate in the range and precision of long double. Additionally, both float_t and double_t are equivalent to long double

[edit] See also

C++ documentation for FLT_EVAL_METHOD