Math.Truncate Method

 

Calculates the integral part of a number.

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

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticTruncate(Decimal)

Calculates the integral part of a specified decimal number.

System_CAPS_pubmethodSystem_CAPS_staticTruncate(Double)

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

The number is rounded to the nearest integer towards zero.

Return to top
Show: