# 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
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

 Represents the natural logarithmic base, specified by the constant, `e`. Represents the ratio of the circumference of a circle to its diameter, specified by the constant, π.

## Methods

 Returns the absolute value of a single-precision floating-point number. Returns the angle whose cosine is the specified number. Returns the angle whose hyperbolic cosine is the specified number. Returns the angle whose sine is the specified number. Returns the angle whose hyperbolic sine is the specified number. Returns the angle whose tangent is the specified number. Returns the angle whose tangent is the quotient of two specified numbers. Returns the angle whose hyperbolic tangent is the specified number. Returns the next smallest value that compares less than `x`. Returns the next largest value that is greater than `x`. Returns the cube root of a specified number. Returns the smallest integral value that is greater than or equal to the specified single-precision floating-point number. Returns a value with the magnitude of `x` and the sign of `y`. Returns the cosine of the specified angle. Returns the hyperbolic cosine of the specified angle. Returns `e` raised to the specified power. Returns the largest integral value less than or equal to the specified single-precision floating-point number. Returns (x * y) + z, rounded as one ternary operation. Returns the remainder resulting from the division of a specified number by another specified number. Returns the base 2 integer logarithm of a specified number. Returns the natural (base `e`) logarithm of a specified number. Returns the logarithm of a specified number in a specified base. Returns the base 10 logarithm of a specified number. Returns the base 2 logarithm of a specified number. Returns the larger of two single-precision floating-point numbers. Returns the larger magnitude of two single-precision floating-point numbers. Returns the smaller of two single-precision floating-point numbers. Returns the smaller magnitude of two single-precision floating-point numbers. Returns a specified number raised to the specified power. Rounds a single-precision floating-point value to the nearest integral value, and rounds midpoint values to the nearest even number. Rounds a single-precision floating-point value to a specified number of fractional digits, and rounds midpoint values to the nearest even number. Rounds a single-precision floating-point value to a specified number of fractional digits, and uses the specified rounding convention for midpoint values. Rounds a single-precision floating-point value to the nearest integer, and uses the specified rounding convention for midpoint values. Returns x * 2^n computed efficiently. Returns an integer that indicates the sign of a single-precision floating-point number. Returns the sine of the specified angle. Returns the hyperbolic sine of the specified angle. Returns the square root of a specified number. Returns the tangent of the specified angle. Returns the hyperbolic tangent of the specified angle. Calculates the integral part of a specified single-precision floating-point number.