MathF Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
-
MathF
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 |
Represents the natural logarithmic base, specified by the constant, e. |
PI |
Represents the ratio of the circumference of a circle to its diameter, specified by the constant, p. |
Tau |
Represents the number of radians in one turn, specified by the constant, τ. |
Methods
Abs(Single) |
Returns the absolute value of a single-precision floating-point number. |
Acos(Single) |
Returns the angle whose cosine is the specified number. |
Acosh(Single) |
Returns the angle whose hyperbolic cosine is the specified number. |
Asin(Single) |
Returns the angle whose sine is the specified number. |
Asinh(Single) |
Returns the angle whose hyperbolic sine is the specified number. |
Atan(Single) |
Returns the angle whose tangent is the specified number. |
Atan2(Single, Single) |
Returns the angle whose tangent is the quotient of two specified numbers. |
Atanh(Single) |
Returns the angle whose hyperbolic tangent is the specified number. |
BitDecrement(Single) |
Returns the largest value that compares less than a specified value. |
BitIncrement(Single) |
Returns the smallest value that compares greater than a specified value. |
Cbrt(Single) |
Returns the cube root of a specified number. |
Ceiling(Single) |
Returns the smallest integral value that is greater than or equal to the specified single-precision floating-point number. |
CopySign(Single, Single) |
Returns a value with the magnitude of |
Cos(Single) |
Returns the cosine of the specified angle. |
Cosh(Single) |
Returns the hyperbolic cosine of the specified angle. |
Exp(Single) |
Returns e raised to the specified power. |
Floor(Single) |
Returns the largest integral value less than or equal to the specified single-precision floating-point number. |
FusedMultiplyAdd(Single, Single, Single) |
Returns (x * y) + z, rounded as one ternary operation. |
IEEERemainder(Single, Single) |
Returns the remainder resulting from the division of a specified number by another specified number. |
ILogB(Single) |
Returns the base 2 integer logarithm of a specified number. |
Log(Single, Single) |
Returns the logarithm of a specified number in a specified base. |
Log(Single) |
Returns the natural (base e) logarithm of a specified number. |
Log10(Single) |
Returns the base 10 logarithm of a specified number. |
Log2(Single) |
Returns the base 2 logarithm of a specified number. |
Max(Single, Single) |
Returns the larger of two single-precision floating-point numbers. |
MaxMagnitude(Single, Single) |
Returns the larger magnitude of two single-precision floating-point numbers. |
Min(Single, Single) |
Returns the smaller of two single-precision floating-point numbers. |
MinMagnitude(Single, Single) |
Returns the smaller magnitude of two single-precision floating-point numbers. |
Pow(Single, Single) |
Returns a specified number raised to the specified power. |
ReciprocalEstimate(Single) |
Returns an estimate of the reciprocal of a specified number. |
ReciprocalSqrtEstimate(Single) |
Returns an estimate of the reciprocal square root of a specified number. |
Round(Single, Int32, MidpointRounding) |
Rounds a single-precision floating-point value to a specified number of fractional digits using the specified rounding convention. |
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, MidpointRounding) |
Rounds a single-precision floating-point value to an integer using the specified rounding convention. |
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) |
Returns x * 2^n computed efficiently. |
Sign(Single) |
Returns an integer that indicates the sign of a single-precision floating-point number. |
Sin(Single) |
Returns the sine of the specified angle. |
SinCos(Single) |
Returns the sine and cosine of the specified angle. |
Sinh(Single) |
Returns the hyperbolic sine of the specified angle. |
Sqrt(Single) |
Returns the square root of a specified number. |
Tan(Single) |
Returns the tangent of the specified angle. |
Tanh(Single) |
Returns the hyperbolic tangent of the specified angle. |
Truncate(Single) |
Calculates the integral part of a specified single-precision floating-point number. |