This documentation is archived and is not being maintained.

Math.Truncate Method

Calculates the integral part of a number.

Name Description
Math.Truncate (Decimal) Calculates the integral part of a specified decimal number.
Math.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: