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
[C#]
public static OracleNumber Truncate(
 OracleNumber n,
 int position
);
[C++]
public: static OracleNumber Truncate(
 OracleNumber n,
 int position
);
[JScript]
public static function Truncate(
   n : OracleNumber,
 position : int
) : OracleNumber;

Parameters

n
The OracleNumber structure to be truncated.
position
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.

Requirements

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

Show:
© 2014 Microsoft