MathF MathF MathF MathF Class

Definition

Provides constants and static methods for trigonometric, logarithmic, and other common mathematical functions.

public ref class MathF abstract sealed
public static class MathF
type MathF = class
Public Class MathF
Inheritance
MathFMathFMathFMathF

Remarks

The static fields and methods of the MathF class correspond to those of the Math class, except that their parameters are of type Single rather than Double, and they return Single rather than Double values.

Fields

E E E E

Represents the natural logarithmic base, specified by the constant, e.

PI PI PI PI

Represents the ratio of the circumference of a circle to its diameter, specified by the constant, π.

Methods

Abs(Single) Abs(Single) Abs(Single) Abs(Single)

Returns the absolute value of a single-precision floating-point number.

Acos(Single) Acos(Single) Acos(Single) Acos(Single)

Returns the angle whose cosine is the specified number.

Acosh(Single) Acosh(Single) Acosh(Single) Acosh(Single)

Returns the angle whose hyperbolic cosine is the specified number.

Asin(Single) Asin(Single) Asin(Single) Asin(Single)

Returns the angle whose sine is the specified number.

Asinh(Single) Asinh(Single) Asinh(Single) Asinh(Single)

Returns the angle whose hyperbolic sine is the specified number.

Atan(Single) Atan(Single) Atan(Single) Atan(Single)

Returns the angle whose tangent is the specified number.

Atan2(Single, Single) Atan2(Single, Single) Atan2(Single, Single) Atan2(Single, Single)

Returns the angle whose tangent is the quotient of two specified numbers.

Atanh(Single) Atanh(Single) Atanh(Single) Atanh(Single)

Returns the angle whose hyperbolic tangent is the specified number.

BitDecrement(Single) BitDecrement(Single) BitDecrement(Single) BitDecrement(Single)

Returns the next smallest value that compares less than x.

BitIncrement(Single) BitIncrement(Single) BitIncrement(Single) BitIncrement(Single)

Returns the next largest value that is greater than x.

Cbrt(Single) Cbrt(Single) Cbrt(Single) Cbrt(Single)

Returns the cube root of a specified number.

Ceiling(Single) Ceiling(Single) Ceiling(Single) Ceiling(Single)

Returns the smallest integral value that is greater than or equal to the specified single-precision floating-point number.

CopySign(Single, Single) CopySign(Single, Single) CopySign(Single, Single) CopySign(Single, Single)

Returns a value with the magnitude of x and the sign of y.

Cos(Single) Cos(Single) Cos(Single) Cos(Single)

Returns the cosine of the specified angle.

Cosh(Single) Cosh(Single) Cosh(Single) Cosh(Single)

Returns the hyperbolic cosine of the specified angle.

Exp(Single) Exp(Single) Exp(Single) Exp(Single)

Returns e raised to the specified power.

Floor(Single) Floor(Single) Floor(Single) Floor(Single)

Returns the largest integral value less than or equal to the specified single-precision floating-point number.

FusedMultiplyAdd(Single, Single, Single) FusedMultiplyAdd(Single, Single, Single) FusedMultiplyAdd(Single, Single, Single) FusedMultiplyAdd(Single, Single, Single)

Returns (x * y) + z, rounded as one ternary operation.

IEEERemainder(Single, Single) IEEERemainder(Single, Single) IEEERemainder(Single, Single) IEEERemainder(Single, Single)

Returns the remainder resulting from the division of a specified number by another specified number.

ILogB(Single) ILogB(Single) ILogB(Single) ILogB(Single)

Returns the base 2 integer logarithm of a specified number.

Log(Single, Single) Log(Single, Single) Log(Single, Single) Log(Single, Single)

Returns the logarithm of a specified number in a specified base.

Log(Single) Log(Single) Log(Single) Log(Single)

Returns the natural (base e) logarithm of a specified number.

Log10(Single) Log10(Single) Log10(Single) Log10(Single)

Returns the base 10 logarithm of a specified number.

Log2(Single) Log2(Single) Log2(Single) Log2(Single)

Returns the base 2 logarithm of a specified number.

Max(Single, Single) Max(Single, Single) Max(Single, Single) Max(Single, Single)

Returns the larger of two single-precision floating-point numbers.

MaxMagnitude(Single, Single) MaxMagnitude(Single, Single) MaxMagnitude(Single, Single) MaxMagnitude(Single, Single)

Returns the larger magnitude of two single-precision floating-point numbers.

Min(Single, Single) Min(Single, Single) Min(Single, Single) Min(Single, Single)

Returns the smaller of two single-precision floating-point numbers.

MinMagnitude(Single, Single) MinMagnitude(Single, Single) MinMagnitude(Single, Single) MinMagnitude(Single, Single)

Returns the smaller magnitude of two single-precision floating-point numbers.

Pow(Single, Single) Pow(Single, Single) Pow(Single, Single) Pow(Single, Single)

Returns a specified number raised to the specified power.

Round(Single, Int32, MidpointRounding) Round(Single, Int32, MidpointRounding) Round(Single, Int32, MidpointRounding) Round(Single, Int32, MidpointRounding)

Rounds a single-precision floating-point value to a specified number of fractional digits, and uses the specified rounding convention for midpoint values.

Round(Single, MidpointRounding) Round(Single, MidpointRounding) Round(Single, MidpointRounding) Round(Single, MidpointRounding)

Rounds a single-precision floating-point value to the nearest integer, and uses the specified rounding convention for midpoint values.

Round(Single, Int32) Round(Single, Int32) Round(Single, Int32) Round(Single, Int32)

Rounds a single-precision floating-point value to a specified number of fractional digits, and rounds midpoint values to the nearest even number.

Round(Single) Round(Single) Round(Single) Round(Single)

Rounds a single-precision floating-point value to the nearest integral value, and rounds midpoint values to the nearest even number.

ScaleB(Single, Int32) ScaleB(Single, Int32) ScaleB(Single, Int32) ScaleB(Single, Int32)

Returns x * 2^n computed efficiently.

Sign(Single) Sign(Single) Sign(Single) Sign(Single)

Returns an integer that indicates the sign of a single-precision floating-point number.

Sin(Single) Sin(Single) Sin(Single) Sin(Single)

Returns the sine of the specified angle.

Sinh(Single) Sinh(Single) Sinh(Single) Sinh(Single)

Returns the hyperbolic sine of the specified angle.

Sqrt(Single) Sqrt(Single) Sqrt(Single) Sqrt(Single)

Returns the square root of a specified number.

Tan(Single) Tan(Single) Tan(Single) Tan(Single)

Returns the tangent of the specified angle.

Tanh(Single) Tanh(Single) Tanh(Single) Tanh(Single)

Returns the hyperbolic tangent of the specified angle.

Truncate(Single) Truncate(Single) Truncate(Single) Truncate(Single)

Calculates the integral part of a specified single-precision floating-point number.

Applies to