Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

OracleNumber.Truncate Method

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Truncates the specified OracleNumber structure's value to the desired position.

[Visual Basic]
Public Shared Function Truncate( _
   ByVal n As OracleNumber, _
   ByVal position As Integer _
) As OracleNumber
public static OracleNumber Truncate(
 OracleNumber n,
 int position
public: static OracleNumber Truncate(
 OracleNumber n,
 int position
public static function Truncate(
   n : OracleNumber,
 position : int
) : OracleNumber;


The OracleNumber structure to be truncated.
The decimal position to which the number will be truncated.

Return Value

Supply a negative value for the position parameter in order to truncate the value to the corresponding position to the left of the decimal point.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

OracleNumber Structure | OracleNumber Members | System.Data.OracleClient Namespace

© 2015 Microsoft