NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Decimal.Truncate

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;

Parameters

d
The Decimal to truncate.

Return Value

The Decimal argument rounded toward zero to the nearest whole number value.

Remarks

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.

See Also

Decimal Structure | Decimal Members | System Namespace