The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
Rounds a specified Decimal number to the closest integer toward negative infinity.
public static decimal Floor(
Type: System.DecimalIf d has a fractional part, the next whole Decimal number toward negative infinity that is less than d.
If d doesn't have a fractional part, d is returned unchanged.
The following code sample illustrates the use of Floor.
public decimal Dollars
protected decimal MyFortune;
public void AddPenny()
MyFortune += .01m;
Supported in: 5, 4, 3
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0
Supported in: Xbox 360, Windows Phone OS 7.0