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, 
PI 
Represents the ratio of the circumference of a circle to its diameter, specified by the constant, π. 
Tau 
Represents the number of radians in one turn, specified by the constant, τ. 
Methods
Abs(Single) 
Returns the absolute value of a singleprecision floatingpoint 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 next smallest value that compares less than 
BitIncrement(Single) 
Returns the next largest value that is greater than 
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 singleprecision floatingpoint 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 
Floor(Single) 
Returns the largest integral value less than or equal to the specified singleprecision floatingpoint 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) 
Returns the natural (base 
Log(Single, Single) 
Returns the logarithm of a specified number in a specified base. 
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 singleprecision floatingpoint numbers. 
MaxMagnitude(Single, Single) 
Returns the larger magnitude of two singleprecision floatingpoint numbers. 
Min(Single, Single) 
Returns the smaller of two singleprecision floatingpoint numbers. 
MinMagnitude(Single, Single) 
Returns the smaller magnitude of two singleprecision floatingpoint numbers. 
Pow(Single, Single) 
Returns a specified number raised to the specified power. 
ReciprocalEstimate(Single)  
ReciprocalSqrtEstimate(Single)  
Round(Single) 
Rounds a singleprecision floatingpoint value to the nearest integral value, and rounds midpoint values to the nearest even number. 
Round(Single, Int32) 
Rounds a singleprecision floatingpoint value to a specified number of fractional digits, and rounds midpoint values to the nearest even number. 
Round(Single, Int32, MidpointRounding) 
Rounds a singleprecision floatingpoint value to a specified number of fractional digits using the specified rounding convention. 
Round(Single, MidpointRounding) 
Rounds a singleprecision floatingpoint value to an integer using the specified rounding convention. 
ScaleB(Single, Int32) 
Returns x * 2^n computed efficiently. 
Sign(Single) 
Returns an integer that indicates the sign of a singleprecision floatingpoint number. 
Sin(Single) 
Returns the sine of the specified angle. 
SinCos(Single)  
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 singleprecision floatingpoint number. 