Reference

macro
<cfenv>

FE_TONEAREST

int
To-nearest rounding direction mode
This macro expands to a value of type int that identifies the to-nearest rounding direction mode for functions fegetround and fesetround .

Rounding x to-nearest selects the possible value that is nearest to x, with halfway cases rounded away from zero.

Possible rounding direction modes are:
macro valuedescription
FE_DOWNWARD Round downward.
FE_TONEARESTRound to nearest.
FE_TOWARDZERO Round toward zero.
FE_UPWARD Round upward.

See also

FE_DOWNWARD
Downward rounding direction mode (macro)
FE_TOWARDZERO
Toward-zero rounding direction mode (macro)
FE_UPWARD
Upward rounding direction mode (macro)
fegetround
Get rounding direction mode (function)
fesetround
Set rounding direction mode (function)

AltStyle によって変換されたページ (->オリジナル) /