Share via


Math.Floor Method

Returns the largest integer less than or equal to the specified double-precision floating-point number.

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

Syntax

[MethodImplAttribute(InternalCall)]
public static double Floor (
         doubled
)

Parameters

  • d
    A double-precision floating-point number.

Return Value

The largest integer less than or equal to d. If d is equal to NaN, NegativeInfinity, or PositiveInfinity, that value is returned.

Remarks

The behavior of this method follows IEEE Standard 754, section 4. This kind of rounding is sometimes called rounding toward negative infinity.

Version Information

Available in .NET Micro Framework version 3.0 and above.

See Also

Reference

Math Class
Math Members
System Namespace