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!

Currency.Truncate

Truncates a Currency to an integer value.

[Visual Basic]
Public Shared Function Truncate( _
   ByVal c As Currency _
) As Currency
[C#]
public static Currency Truncate(
   Currency c
);
[C++]
public: static Currency Truncate(
   Currency c
);
[JScript]
public static function Truncate(
   c : Currency
) : Currency;

Parameters

c
The Currency to truncate.

Return Value

The Currency value, rounded towards zero to the nearest integer value.

Remarks

The Truncate method changes the Currency value by removing all the number beyond the decimal point and rounding the result to the nearest integer.

Precisely, the Currency argument is rounded towards zero to the nearest integer value, corresponding to removing all digits after the decimal point.

See Also

Currency Structure | Currency Members | System Namespace