Double.IsFinite() Method in C# Last Updated : 15 Apr, 2019 Summarize Comments Improve Suggest changes Share Like Article Like Report Double.IsFinite() Method is used to check whether the double value is out of bound or not. Syntax: public static bool IsFinite (double value); Return Value: This method returns the true if value is finite otherwise false. Below programs illustrate the use of Double.IsFinite() Method: Example 1: csharp // C# program to demonstrate the // Double.IsFinite() Method using System; using System.Globalization; class GFG { // Main Method public static void Main() { // Declaring and initializing value1 double value1 = 10d; // using IsFinite() method bool value = Double.IsFinite(value1); // Displaying the result if (value) Console.WriteLine("{0} is finite", value1); else Console.WriteLine("{0} is not finite", value1); } } Output: 10 is finite Example 2: csharp // C# program to demonstrate the // Double.IsFinite() Method using System; using System.Globalization; class GFG { // Main Method public static void Main() { // Declaring and initializing value1 double value1 = Math.Pow(2, 1000000000000); // using IsFinite() method bool value = Double.IsFinite(value1); // Displaying the result if (value) Console.WriteLine("{0} is finite", value1); else Console.WriteLine("{0} is not finite", value1); } } Output: Infinity is not finite Comment More infoAdvertise with us Next Article Double.IsFinite() Method in C# R rohitprasad3 Follow Improve Article Tags : C# CSharp-method CSharp-Double-Struct Similar Reads Double.IsInfinity() Method in C# In C#, Double.IsInfinity() is a Double struct method. This method is used to check whether a specified value evaluates to either positive infinity or negative infinity or not. While performing some mathematical operations, it is possible to obtain a result that is either positive infinity or negativ 2 min read Double.IsNaN() Method in C# In C#, Double.IsNaN() is a Double struct method. This method is used to check whether the specified value is not a number (NaN). Syntax: public static bool IsNaN (double d); Parameter: d: It is a double-precision floating-point number of type System.Double Return Type: This function returns a Boolea 2 min read Double.IsPositiveInfinity() Method in C# In C#, Double.IsPositiveInfinity() is a Double struct method. This method is used to check whether a specified value evaluates to positive infinity or not. In some floating point operation, it is possible to obtain a result that is positive infinity. For Example: If any positive value is divided by 2 min read Double.IsNegativeInfinity() Method in C# In C#, Double.IsNegativeInfinity() is a Double struct method. This method is used to check whether a specified value evaluates to negative infinity or not. In some floating point operation, it is possible to obtain a result that is negative infinity. For Example: If any negative value is divided by 2 min read Single.IsFinite() Method in C# with Examples Single.IsFinite() Method is used to check whether the float value is out of bound or not. Syntax: public static bool IsFinite (float value); Return Value: This method returns the true if value is finite otherwise false. Below programs illustrate the use of Single.IsFinite() Method: Example 1: csharp 1 min read Like