Truncates a specified Decimal to an integer value.
[Visual Basic] Public Shared Function Truncate( _ ByVal d As Decimal _ ) As Decimal [C#] public static Decimal Truncate( Decimal d ); [C++] public: static Decimal Truncate( Decimal d ); [JScript] public static function Truncate( d : Decimal ) : Decimal;
The Decimal argument rounded toward zero to the nearest whole number value.
The Truncate method performs its function by rounding the Decimal argument toward zero to the nearest whole number value, corresponding to removing all digits after the decimal point.