NullableTypes Class Library

NullableDecimal.Truncate Method 

Returns the integral digits of the specified NullableDecimal value to a specified while any fractional digits are discarded

[Visual Basic]
Public Shared Function Truncate( _
   ByVal x As NullableDecimal _
) As NullableDecimal
public static NullableDecimal Truncate(
   NullableDecimal x


A NullableDecimal structure.

Return Value

Null if x is Null otherwise the result of x rounded toward zero, to the


This method rounds x discarding any digits after the decimal point.

See Also

NullableDecimal Class | NullableTypes Namespace