From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/c/types%2Flimits%2Fflt_rounds.html | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 devdocs/c/types%2Flimits%2Fflt_rounds.html (limited to 'devdocs/c/types%2Flimits%2Fflt_rounds.html') diff --git a/devdocs/c/types%2Flimits%2Fflt_rounds.html b/devdocs/c/types%2Flimits%2Fflt_rounds.html new file mode 100644 index 00000000..0386877f --- /dev/null +++ b/devdocs/c/types%2Flimits%2Fflt_rounds.html @@ -0,0 +1,21 @@ +

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

Notes

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

+

See also

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

+ © cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
+ https://en.cppreference.com/w/c/types/limits/FLT_ROUNDS +

+
-- cgit v1.2.3