Abs(double a)
Returns the absolute value of a double-precision floating-point number.
a
.Provides constants and static methods for trigonometric, logarithmic, antilogarithmic, exponential, and other common mathematical functions.
Name | Description |
---|---|
PI |
Represents the ratio of the circumference of a circle to its diameter, specified as π. |
E |
Represents the natural logarithmic base, e. |
Abs(double a)
Returns the absolute value of a double-precision floating-point number.
a
.Abs(int a)
Returns the absolute value of a 32-bit signed integer.
a
.Abs(long a)
Returns the absolute value of a 64-bit signed integer.
a
.Ceiling(double a)
Returns the smallest integral value that is greater than or equal to the specified floating-point number.
a
.Floor(double a)
Returns the largest integral value that is less than or equal to the specified floating-point number.
a
.Round(double a)
Rounds a double-precision floating-point number to the nearest integral value.
a
.Sin(double a)
Returns the sine of the specified angle, measured in radians.
a
.Cos(double a)
Returns the cosine of the specified angle, measured in radians.
a
.Tan(double a)
Returns the tangent of the specified angle, measured in radians.
a
.Log(double a)
Returns the natural (base e) logarithm of a specified number.
a
.Log10(double a)
Returns the base 10 logarithm of a specified number.
a
.Exp(double a)
Returns e raised to the power of a specified number.
a
.Pow(double x, double y)
Returns the specified number raised to the specified power.
x
raised to the power of y
.Sqrt(double a)
Returns the square root of a specified number.
a
.Max(double val1, double val2)
Returns the larger of two double-precision floating-point numbers.
val1
and val2
.Min(double val1, double val2)
Returns the smaller of two double-precision floating-point numbers.
val1
and val2
.