Namespaces
Variants
Actions

FLT_ROUNDS

From cppreference.com
< c‎ | types‎ | limits
 
C
 
Type support
 
Numeric limits
FLT_ROUNDS
 
Defined in header <float.h>
#define FLT_ROUNDS /* implementation defined */

Returns the current rounding direction of floating-point arithmetic operations.

Value Explanation
-1 the default rounding direction is not known
0 toward zero; same meaning as FE_TOWARDZERO
1 to nearest; same meaning as FE_TONEAREST
2 towards positive infinity; same meaning as FE_UPWARD
3 towards negative infinity; same meaning as FE_DOWNWARD
other values implementation-defined behavior

[edit] Notes

The rounding mode can be changed with fesetround and FLT_ROUNDS reflects that change.

[edit] See also

gets or sets rounding direction
(function) [edit]
floating-point rounding direction
(macro constant) [edit]
C++ documentation for FLT_ROUNDS

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant