 
 Data Structure Data Structure
 Networking Networking
 RDBMS RDBMS
 Operating System Operating System
 Java Java
 MS Excel MS Excel
 iOS iOS
 HTML HTML
 CSS CSS
 Android Android
 Python Python
 C Programming C Programming
 C++ C++
 C# C#
 MongoDB MongoDB
 MySQL MySQL
 Javascript Javascript
 PHP PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Server Side Programming Articles - Page 2091 of 2650
 
 
			
			124 Views
The MathF.Acosh() method in C# is used to return the hyperbolic arc-cosine of a floating-point value.SyntaxFollowing is the syntax −public static float Acosh (float val);Above, Val is the floating-point number.ExampleLet us now see an example to implement the MathF.Acosh() method −using System; public class Demo { public static void Main(){ float val1 = 0.1f; float val2 = 0.9f; Console.WriteLine("Angle (val1) = "+(MathF.Acosh(val1))); Console.WriteLine("Angle (val2) = "+(MathF.Acosh(val2))); } }OutputThis will produce the following output −Angle (val1) = NaN Angle (val2) = NaNExampleLet us now see another example ... Read More
 
 
			
			210 Views
The MathF.Atan2() method in C# returns the angle whose tangent is the quotient of two floating-point numbers.SyntaxFollowing is the syntax −public static float Atan2 (float val1, float val2);Above, val1 is the x-coordinate of a point, whereas val2 is the y-coordinate.ExampleLet us now see an example to implement the MathF.Atan2() method −using System; public class Demo { public static void Main(){ float val1 = 0.1f; float val2 = 0.9f; Console.WriteLine("Return value = "+(MathF.Atan2(val1, val2))); } }OutputThis will produce the following output −Return value = 0.1106572ExampleLet us now see another example ... Read More
 
 
			
			162 Views
The Char.IsSurrogatePair() method in C# is used to indicate whether two adjacent Char objects at a specified position in a string form a surrogate pair.SyntaxFollowing is the syntax −public static bool IsSurrogatePair (string str, int index);Above, the string str is a string, whereas the index is the starting position of the pair of characters to evaluate within str.ExampleLet us now see an example to implement the Char.IsSurrogatePair() method −using System; public class Demo { public static void Main(){ string str = new String(new char[] { 'k', 'm', 'g', 't', '\uD800' }); bool res ... Read More
 
 
			
			193 Views
The Char.IsSurrogate() method in C# indicates whether the specified character has a surrogate code unit.SyntaxFollowing is the syntax −public static bool IsSurrogate (string str, int index);Above, the parameter str is the string, whereas the index is the position of the character to evaluate in str.ExampleLet us now see an example to implement the Char.IsSurrogate() method −using System; public class Demo { public static void Main(){ string str = new String(new char[] { 'k', 'm', 'g', 't', '\uD800' }); bool res = Char.IsSurrogate(str, 4); if (res) Console.WriteLine("Contains ... Read More
 
 
			
			174 Views
The Char.IsSeparator() method in C# indicates whether the specified Unicode character is categorized as a separator character.SyntaxFollowing is the syntax −public static bool IsSeparator (char ch);Above. ch is the Unicode character to evaluate.ExampleLet us now see an example to implement the Char.IsSeparator() method −using System; public class Demo { public static void Main(){ bool res; char val = ', '; Console.WriteLine("Value = "+val); res = Char.IsSeparator(val); Console.WriteLine("Is the value a separator? = "+res); } }OutputThis will produce the following output −Value = , ... Read More
 
 
			
			559 Views
The Char.IsPunctuation() method in C# indicates whether the specified Unicode character is categorized as a punctuation mark.SyntaxFollowing is the syntax −public static bool IsPunctuation (char ch);Above, ch is the Unicode character to evaluate.ExampleLet us now see an example to implement the Char.IsPunctuation() method −using System; public class Demo { public static void Main(){ bool res; char val = 'q'; Console.WriteLine("Value = "+val); res = Char.IsPunctuation(val); Console.WriteLine("Is the value a punctuation? = "+res); } }OutputThis will produce the following output −Value = q Is ... Read More
 
 
			
			144 Views
The MathF.Acos() method in C# is used to return the angle whose cosine is given as a float value argument.SyntaxFollowing is the syntax −public static float Acos (float val);Above, Val is the floating-point number.ExampleLet us now see an example to implement the MathF.Acos() method −using System; public class Demo { public static void Main(){ float val1 = 0.1f; float val2 = 0.9f; Console.WriteLine("Angle (val1) = "+(MathF.Acos(val1))); Console.WriteLine("Angle (val2) = "+(MathF.Acos(val2))); } }OutputThis will produce the following output −Angle (val1) = 1.470629 Angle (val2) = 0.4510269ExampleLet us ... Read More
 
 
			
			187 Views
The MathF.Abs() method in C# is used to return the absolute value of a float number.SyntaxFollowing is the syntax −public static float Abs (float val);Above, the parameter Val is the specified float number.ExampleLet us now see an example to implement the MathF.Abs() method −using System; public class Demo { public static void Main(){ float val1 = 20.5f; float val2 = -89.5f; Console.WriteLine("Absolute float value1 = "+(MathF.Abs(val1))); Console.WriteLine("Absolute float value2 = "+(MathF.Abs(val2))); } }OutputThis will produce the following output −Absolute float value1 = 20.5 Absolute float value2 ... Read More
 
 
			
			158 Views
The UInt64.MinValue field in C# represents the minimum value of the 64-bit unsigned integer.SyntaxFollowing is the syntax −public const ulong MinValue = 0;ExampleLet us now see an example to implement the UInt64.MinValue field −using System; public class Demo { public static void Main(){ ulong val1 = 879879879; ulong val2 = 464556565; Console.WriteLine("Value1 = "+val1); Console.WriteLine("Value2 = "+val2); Console.WriteLine("HashCode for value1 = "+val1.GetHashCode()); Console.WriteLine("HashCode for value2 = "+val2.GetHashCode()); Console.WriteLine("Are they equal? = "+(val1.Equals(val2))); TypeCode type1 = ... Read More
 
 
			
			363 Views
The UInt64.MaxValue field in C# represents the maximum value of the 64-bit unsigned integer.SyntaxFollowing is the syntax −public const ulong MaxValue = 18446744073709551615;ExampleLet us now see an example to implement the UInt64.MaxValue field −using System; public class Demo { public static void Main(){ ulong val1 = 879879879; ulong val2 = 464556565; Console.WriteLine("Value1 = "+val1); Console.WriteLine("Value2 = "+val2); Console.WriteLine("HashCode for value1 = "+val1.GetHashCode()); Console.WriteLine("HashCode for value2 = "+val2.GetHashCode()); Console.WriteLine("Are they equal? = "+(val1.Equals(val2))); TypeCode type1 = ... Read More