Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::float_round_style

      From cppreference.com
      <cpp‎ |types‎ |numeric limits
       
       
      Utilities library
       
       
      std::numeric_limits
      Static constants
      Static member functions
      Helper types
      float_round_style
       
      Defined in header<limits>
      enum float_round_style{

          round_indeterminate      =-1,
          round_toward_zero        =0,
          round_to_nearest          =1,
          round_toward_infinity    =2,
          round_toward_neg_infinity=3

      };

      Enumeration constants of typestd::float_round_style indicate the rounding style used by floating-point arithmetic whenever a result of an expression is stored in an object of a floating-point type.

      [edit]Enumeration constants

      Enumerator Meaning
      std::round_indeterminate rounding style cannot be determined
      std::round_toward_zero rounding toward zero
      std::round_to_nearest rounding toward nearest representable value
      std::round_toward_infinity rounding toward positive infinity
      std::round_toward_neg_infinity rounding toward negative infinity

      [edit]See also

      [static]
      identifies the rounding style used by the type
      (public static member constant)[edit]
      floating-point rounding direction
      (macro constant)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/types/numeric_limits/float_round_style&oldid=182076"

      [8]ページ先頭

      ©2009-2025 Movatter.jp