Math.Floor Method
.NET Framework (current version)
Note |
|---|
The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience. |
Returns the largest integer less than or equal to the specified number.
Assembly: mscorlib (in mscorlib.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | Floor(Decimal) | Returns the largest integer less than or equal to the specified decimal number. |
![]() ![]() | Floor(Double) | Returns the largest integer less than or equal to the specified double-precision floating-point number. |
The behavior of this method follows IEEE Standard 754, section 4. This kind of rounding is sometimes called rounding toward negative infinity.
Show:


