Bridge

Decimal..::..Floor Method (Decimal)

Rounds a specified Decimal number to the closest integer toward negative infinity.

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

Syntax


[TemplateAttribute]
public static decimal Floor(
	decimal d
)
<TemplateAttribute> _
Public Shared Function Floor ( _
	d As Decimal _
) As Decimal
[TemplateAttribute]
public:
static Decimal^ Floor(
	Decimal^ d
)

Parameters

d
Type: System..::..Decimal
The value to round.

Return Value

If d has a fractional part, the next whole Decimal number toward negative infinity that is less than d.-or- If d doesn't have a fractional part, d is returned unchanged. Note that the method returns an integral value of type Decimal.