Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      FLT_ROUNDS

      From cppreference.com
      <c‎ |types‎ |limits
       
       
       
       
      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 asFE_TOWARDZERO
      1 to nearest; same meaning asFE_TONEAREST
      2 towards positive infinity; same meaning asFE_UPWARD
      3 towards negative infinity; same meaning asFE_DOWNWARD
      other values implementation-defined behavior

      [edit]Notes

      The rounding mode can be changed withfesetround andFLT_ROUNDS reflects that change.

      [edit]See also

      gets or sets rounding direction
      (function)[edit]
      floating-point rounding direction
      (macro constant)[edit]
      C++ documentation forFLT_ROUNDS
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=c/types/limits/FLT_ROUNDS&oldid=108863"

      [8]ページ先頭

      ©2009-2026 Movatter.jp