Windows apps
Collapse the table of content
Expand the table of content
Information
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

 

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:
© 2017 Microsoft