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.
Math::Truncate Method
.NET Framework (current version)
Calculates the integral part of a number.
Assembly: mscorlib (in mscorlib.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | Truncate(Decimal) | Calculates the integral part of a specified decimal number. |
![]() ![]() | Truncate(Double) | Calculates the integral part of a specified double-precision floating-point number. |
The number is rounded to the nearest integer towards zero.
Show:

