System.Math
Method |
Description |
Method syntax |
Examples |
---|---|---|---|
Abs |
Returns the absolute value of a number. |
double System.Math.Abs (double value) |
System.Math.Abs (-2.365) |
Acos |
Returns the angle whose cosine is the input value. |
double System.Math.Acos (double value) |
System.Math.Acos (2.365) |
Asin |
Returns the angle whose sine is the input value. |
double System.Math.Asin (double value) |
System.Math.Asin (2.365) |
Atan |
Returns the angle whose tangent is the input value. |
double System.Math.Atan (double value) |
System.Math.Atan (2.365) |
Atan2 |
Returns the angle whose tangent is the quotient of two input values. |
double System.Math.Atan2 (double x, double y) |
System.Math.Atan2 (1,2) |
BigMul |
Returns the full product of two numbers. |
Long System.Math.BigMul (int a, int b) |
System.Math.BigMul (2147483647, 2147483647) |
Ceiling |
Returns the smallest integer greater than or equal to the input number. |
double System.Math.Ceiling (double value) |
System.Math.Ceiling (2.365) |
Cos |
Returns the cosine of the specified angle. The angle must be in radians. Multiply by System.Math.PI/180 to convert degrees to radians. |
double System.Math.Cos (double value) |
System.Math.Cos (45*System.Math.PI/180) |
Cosh |
Returns the hyperbolic cosine of the specified angle. The angle must be in radians. Multiply by System.Math.PI/180 to convert degrees to radians. |
double System.Math.Cosh (double value) |
System.Math.Cosh (45*System.Math.PI/180) |
Exp |
Returns e raised to the specified power |
double System.Math.Exp (double value) |
System.Math.Exp (2.365) |
Floor |
Returns the largest integer less than or equal to the specified number. |
double System.Math.Floor (double value) |
System.Math.Floor (4.5) |
IEEERemainder |
Returns the remainder resulting from the division of a specified number by another specified number. |
double System.Math.IEEERemainder (double value) |
System.Math.IEEERemainder (2.365) |
Log |
Returns the logarithm of a specified number. |
double System.Math.Log (double value) |
System.Math.Log (2.365) |
Log10 |
Returns the base 10 logarithm of a specified number. |
double System.Math.Log10 (double value) |
System.Math.Log10 (2.365) |
Max |
Returns the larger of two specified numbers. |
double System.Math.Max (double value1, double value2) |
System.Math.Max (2.365, 3.58) |
Min |
Returns the smaller of two specified numbers. |
double System.Math.Min (double value1, double value2) |
System.Math.Min (2.365) |
Pow |
Returns a specified number raised to the specified power. |
double System.Math.Pow (double value, double power) |
System.Math.Pow (4,2) |
Sin |
- |
double System.Math.Sin (double value) |
System.Math.Sin (45*System.Math.PI/180) |
Sinh |
- |
double System.Math.Sinh (double value) |
System.Math.Sinh (2.365) |
Sqrt |
- |
double System.Math.Sqrt (double value) |
System.Math.Sqrt (2.365) |
Tan |
- |
double System.Math.Tan (double value) |
System.Math.Tan (2.365) |
Tanh |
- |
double System.Math.Tanh (double value) |
System.Math.Tanh (2.365) |