AmitDiwan has Published 10740 Articles

Decimal.ToInt32() Method in C#

AmitDiwan

AmitDiwan

Updated on 12-Nov-2019 10:28:34

122 Views

The Decimal.ToInt32() method in C# is used to convert the value of the specified Decimal to the equivalent 32-bit signed integer.SyntaxFollowing is the syntax −public static int ToInt32 (decimal val);Above, Val is the decimal number to convert.ExampleLet us now see an example to implement the Decimal.ToInt32() method −using System; public ... Read More

Char.IsLowSurrogate(String, Int32) Method in C#

AmitDiwan

AmitDiwan

Updated on 12-Nov-2019 10:26:51

129 Views

The Char.IsLowSurrogate() method in C# indicates whether the Char object at the specified position in a string is a low surrogate.SyntaxFollowing is the syntax −public static bool IsLowSurrogate (string str, int index);Above, str is a string, whereas the index is the position of the character to evaluate in str.ExampleLet us ... Read More

Char.IsLower() Method in C#

AmitDiwan

AmitDiwan

Updated on 12-Nov-2019 10:25:13

333 Views

The Char.IsLower() method in C# is used to indicate whether the specified Unicode character is categorized as a lowercase letter.SyntaxFollowing is the syntax −public static bool IsLower (char ch);Above, the parameter ch is the Unicode character to evaluate.ExampleLet us now see an example to implement the Char.IsLower() method −using System; ... Read More

Char.IsLetterOrDigit() Method in C#

AmitDiwan

AmitDiwan

Updated on 12-Nov-2019 10:23:35

868 Views

The Char.IsLetterOrDigit() method in C# indicates whether the specified Unicode character is categorized as a letter or a decimal digit.SyntaxFollowing is the syntax −public static bool IsLetterOrDigit (char ch);Above, ch is the Unicode character to evaluate.ExampleLet us now see an example to implement the Char.IsLetterOrDigit() method −using System; public class ... Read More

MathF.Atanh() Method in C# with Examples

AmitDiwan

AmitDiwan

Updated on 12-Nov-2019 10:21:29

135 Views

The MathF.Atanh() method in C# returns the hyperbolic arc-tangent of a floating-point value.SyntaxFollowing is the syntax −public static float Atanh (float val);ExampleLet us now see an example to implement the MathF.Atanh() method −using System; public class Demo {    public static void Main(){       float val1 = 25f; ... Read More

UInt16.ToString Method in C# with Examples

AmitDiwan

AmitDiwan

Updated on 12-Nov-2019 09:57:26

177 Views

The UInt16.ToString() method in C# is used to convert the numeric value of the current UInt16 instance to its equivalent string representation.SyntaxFollowing is the syntax −public override string ToString();ExampleLet us now see an example to implement the UInt16.ToString() method −using System; public class Demo {    public static void Main(){ ... Read More

MathF.Sign() Method in C# with Examples

AmitDiwan

AmitDiwan

Updated on 12-Nov-2019 09:53:33

356 Views

The MathF.Sign() method in C# returns an integer specifying the sign of the number.SyntaxFollowing is the syntax −public static int Sign (float val);Above, Val is the floating-point number whose sign is to be calculated.The return value is 0 if Val is zero. It’s -1 if the value is less than ... Read More

MathF.Round() Method in C# with Examples

AmitDiwan

AmitDiwan

Updated on 12-Nov-2019 09:52:10

3K+ Views

The MathF.Round() method in C# is used to round a value to the nearest integer or to the particular number of fractional digits.SyntaxFollowing is the syntax −public static float Round (float x); public static float Round (float x, int digits); public static float Round (float x, int digits, MidpointRounding mode); ... Read More

Decimal.ToInt16() Method in C#

AmitDiwan

AmitDiwan

Updated on 12-Nov-2019 09:49:38

108 Views

The Decimal.ToInt16() method in C# is used to convert the value of the specified Decimal to the equivalent 16-bit signed integer.SyntaxFollowing is the syntax −public static short ToInt16 (decimal val);Above, Val is the decimal number to convert.ExampleLet us now see an example to implement the Decimal.ToInt16() method −using System; public ... Read More

Decimal.ToDouble() Method in C#

AmitDiwan

AmitDiwan

Updated on 12-Nov-2019 09:46:44

156 Views

The Decimal.ToDouble() method in C# is used to convert the value of the specified Decimal to the equivalent double-precision floating-point number.SyntaxFollowing is the syntax −public static double ToDouble (decimal val);Above, Val is the decimal number to convert.ExampleLet us now see an example to implement the Decimal.ToDouble() method −using System; public ... Read More

Advertisements