Truncate Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Calculates the integral part of a specified double-precision floating-point number.

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

public static double Truncate(
	double d


Type: System..::..Double
A number to truncate.

Return Value

Type: System..::..Double
The integral part of d; that is, the number that remains after any fractional digits have been discarded, or one of the values listed in the following table.

Truncate rounds d to the nearest integer towards zero.