C# Number
21 functions
Math.AbsMath.Abs(value)Returns the absolute value of a number.
Math.CeilingMath.Ceiling(d)Returns the smallest integral value greater than or equal to the number.
Math.FloorMath.Floor(d)Returns the largest integral value less than or equal to the number.
Math.RoundMath.Round(d, digits?, mode?)Rounds a value to the nearest integer or specified decimal places.
Math.MaxMath.Max(val1, val2)Returns the larger of two specified numbers.
Math.MinMath.Min(val1, val2)Returns the smaller of two numbers.
Math.PowMath.Pow(x, y)Returns a specified number raised to the specified power.
Math.SqrtMath.Sqrt(d)Returns the square root of a specified number.
Math.LogMath.Log(d, newBase?)Returns the natural or specified-base logarithm of a number.
Math.Log10Math.Log10(d)Returns the base 10 logarithm of a specified number.
Math.Log2Math.Log2(x)Returns the base 2 logarithm of a specified number.
Math.SinMath.Sin(a)Returns the sine of the specified angle.
Math.CosMath.Cos(a)Returns the cosine of the specified angle.
Math.TanMath.Tan(a)Returns the tangent of the specified angle.
Math.SignMath.Sign(value)Returns an integer that indicates the sign of a number.
Math.TruncateMath.Truncate(d)Calculates the integral part of a number.
int.Parseint.Parse(s)Converts the string representation of a number to its int equivalent.
double.Parsedouble.Parse(s)Converts the string representation of a number to its double equivalent.
int.TryParseint.TryParse(s, out result)Converts the string to an int, returning true if successful.
Convert.ToInt32Convert.ToInt32(value)Converts a specified value to a 32-bit signed integer.
Convert.ToDoubleConvert.ToDouble(value)Converts a specified value to a double-precision floating-point number.
