Click or drag to resize
MathTruncate Method (Decimal)
Calculates the integral part of a specified decimal number.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static decimal Truncate(
	decimal d
)

Parameters

d
Type: SystemDecimal
A number to truncate.

Return Value

Type: Decimal
The integral part of d; that is, the number that remains after any fractional digits have been discarded.
See Also