Math.Truncate Method

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: