AmitDiwan has Published 10744 Articles

Math.Atan() Method in C#

AmitDiwan

AmitDiwan

Updated on 06-Nov-2019 06:00:51

905 Views

The Math.Atan() method in C# is used to return the angle whose tan is the specified number. The number is a double value argument. The method returns an angle, θ, measured in radians, such that -Π/2 ≤θ≤Π/2.SyntaxFollowing is the syntax −public static double Atan(double num)ExampleLet us now see an example ... Read More

Math.Asin() Method in C#

AmitDiwan

AmitDiwan

Updated on 06-Nov-2019 05:58:38

161 Views

The Math.Asin() method in C# is used to return the angle whose sine is the specified number. The number is a double value argument.SyntaxFollowing is the syntax −public static double Asin (double val);Above, Val is a number representing a sine. The value of Val must be greater than or equal ... Read More

Math.Acos() Method in C#

AmitDiwan

AmitDiwan

Updated on 06-Nov-2019 05:54:36

359 Views

The Math.Acos() method in C# returns the angle whose cosine is the specified number. This number is a double value argument. SyntaxThe syntax is as follows −public static double Acos (double val);Above, Val is the number representing a cosine, where Val must be greater than or equal to -1, but less ... Read More

Math.Abs() Method in C#

AmitDiwan

AmitDiwan

Updated on 06-Nov-2019 05:51:04

16K+ Views

The Math.Abs() method in C# is used to return the absolute value of a specified number in C#. This specified number can be decimal, double, 16-bit signed integer, etc.ExampleLet us now see an example to implement the Math.abs() method to return the absolute value of double number −using System; class ... Read More

Dictionary.Values Property in C#

AmitDiwan

AmitDiwan

Updated on 06-Nov-2019 05:49:15

319 Views

The Dictionary.Values property in C# is used to fetch all the values in the Dictionary.SyntaxFollowing is the syntax −public System.Collections.Generic.Dictionary.KeyCollection Values{ get; }ExampleLet us now see an example to implement the Dictionary.Values property −using System; using System.Collections.Generic; public class Demo {    public static void Main(){       Dictionary ... Read More

Dictionary Class in C#

AmitDiwan

AmitDiwan

Updated on 06-Nov-2019 05:45:31

808 Views

Dictionary in C# is a collection of keys and values. It is a generic collection class in the System.Collection.Generics namespace.SyntaxFollowing is the syntax −public class DictionaryAbove, the key parameter is the type of keys in the dictionary, whereas TValue is the type of values.ExampleLet us now create a Dictionary and ... Read More

Convert.ToSByte(String, IFormatProvider) Method in C#

AmitDiwan

AmitDiwan

Updated on 06-Nov-2019 05:41:58

162 Views

The Convert.ToSByte() method in C# converts the specified string representation of a number to an equivalent 8-bit signed integer, using the specified culture-specific formatting information.SyntaxFollowing is the syntax −public static sbyte ToSByte (string val, IFormatProvider provider);Above, the parameter value is a string that contains the number to convert. A provider ... Read More

Convert.ToDouble(String, IFormatProvider) Method in C#

AmitDiwan

AmitDiwan

Updated on 06-Nov-2019 05:39:32

2K+ Views

The Convert.ToDouble() method in C# converts the specified string representation of a number to an equivalent double-precision floating-point number, using the specified culture-specific formatting information.SyntaxFollowing is the syntax −public static double ToDouble (string val, IFormatProvider provider);Above, the value value is a string that contains the number to convert, whereas the ... Read More

DateTime.AddHours() Method in C#

AmitDiwan

AmitDiwan

Updated on 06-Nov-2019 05:37:24

7K+ Views

The DateTime.AddHours() method in C# is used to add the specified number of hours to the value of this instance. This method returns a new DateTime.SyntaxFollowing is the syntax −public DateTime AddHours (double hrs);Above, hrs are the number of hours to be added. The value can be negative to subtract ... Read More

DateTime.AddDays() Method in C#

AmitDiwan

AmitDiwan

Updated on 06-Nov-2019 05:33:59

10K+ Views

The DateTime.AddDays() method in C# is used to add the specified number of days to the value of this instance. This method returns a new DateTime.SyntaxFollowing is the syntax −public DateTime AddDays (double days);Above, the parameter days are the number of days to be added. To subtract, add a negative ... Read More

Advertisements