Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      INFINITY

      From cppreference.com
      <cpp‎ |numeric‎ |math
       
       
       
      Common mathematical functions
      Nearest integer floating point operations
      (C++11)(C++11)(C++11)
      (C++11)
      (C++11)
      (C++11)(C++11)(C++11)
      Floating point manipulation functions
      (C++11)(C++11)
      (C++11)
      (C++11)
      Classification and comparison
      (C++11)
      (C++11)
      (C++11)
      (C++11)
      (C++11)
      (C++11)
      Types
      (C++11)
      (C++11)
      (C++11)
      Macro constants
      INFINITY
      (C++11)
      (C++11)
       
      Defined in header<cmath>
      #define INFINITY /*implementation defined*/
      (since C++11)

      If the implementation supports floating-point infinities, the macroINFINITY expands to constant expression of typefloat which evaluates to positive or unsigned infinity.

      If the implementation does not support floating-point infinities, the macroINFINITY expands to a positive value that is guaranteed to overflow afloat at compile time, and the use of this macro generates a compiler warning.

      [edit]See also

      (C++11)
      checks if the given number is infinite
      (function)[edit]
      indicates the overflow value forfloat,double andlongdouble respectively
      (macro constant)[edit]
      [static]
      identifies floating-point types that can represent the special value "positive infinity"
      (public static member constant ofstd::numeric_limits<T>)[edit]
      [static]
      returns the positive infinity value of the given floating-point type
      (public static member function ofstd::numeric_limits<T>)[edit]
      C documentation forINFINITY
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/numeric/math/INFINITY&oldid=139145"

      [8]ページ先頭

      ©2009-2025 Movatter.jp