# MathF Class

## Definition

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

## Remarks

`MathF` 类的静态字段和方法对应于 Math 类的静态字段和方法，不同之处在于它们的参数是 Single 类型而不是 Double类型，而是返回 Single 而不是 Double 值。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`. 表示圆的周长与其直径的比值，由常数 π 指定。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. 返回小于 `x` 的下一个最小值。Returns the next smallest value that compares less than `x`. 返回大于 `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. 返回一个值，它具有 `x` 的大小和 `y` 的符号。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. 返回 `e` 的指定次幂。Returns `e` raised to the specified power. 返回小于等于指定单精度浮点数的最大整数值。Returns the largest integral value less than or equal to the specified single-precision floating-point number. 返回 (x * y) + z，舍入为一个三元运算。Returns (x * y) + z, rounded as one ternary operation. 返回一指定数字被另一指定数字相除的余数。Returns the remainder resulting from the division of a specified number by another specified number. 返回指定数字以 2 为底的整数对数。Returns the base 2 integer logarithm of a specified number. 返回指定数字的自然对数（底为 `e`）。Returns the natural (base `e`) logarithm of a specified number. 返回指定数字在使用指定底时的对数。Returns the logarithm of a specified number in a specified base. 返回指定数字以 10 为底的对数。Returns the base 10 logarithm of a specified number. 返回指定数字以 2 为底的对数。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. 返回有效计算的 x * 2^n。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.