System.Math Documentation

Class System.Math

The Math class provides constants and static methods for trigonometric, logarithmic, and other common mathematical functions.

Method Description
Abs Returns the absolute value of a number.
Acos Returns the angle whose cosine is the specified number.
Asin Returns the angle whose sine is the specified number.
Atan Returns the angle whose tangent is the specified number.
Ceiling Returns the smallest integral value greater than or equal to the specified number.
Cos Returns the cosine of the specified angle.
Exp Returns e raised to the specified power.
Floor Returns the largest integral value less than or equal to the specified number.
Log Returns the natural (base e) logarithm of a specified number.
Log10 Returns the base-10 logarithm of a specified number.
Max Returns the larger of two numbers.
Min Returns the smaller of two numbers.
Pow Raises a number to the specified power.
Round Rounds a double-precision floating-point value to the nearest integer.
Sin Returns the sine of the specified angle.
Sqrt Returns the square root of a specified number.
Tan Returns the tangent of the specified angle.