Bridge

Decimal..::..Truncate Method

Returns the integral digits of the specified Decimal; any fractional digits are discarded.

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

Syntax


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

Parameters

d
Type: System..::..Decimal
The decimal number to truncate.

Return Value

The result of d rounded toward zero, to the nearest whole number.