Uređivanje

Dijeli putem


OracleNumber.Truncate(OracleNumber, Int32) Method

Definition

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

public:
 static System::Data::OracleClient::OracleNumber Truncate(System::Data::OracleClient::OracleNumber n, int position);
public static System.Data.OracleClient.OracleNumber Truncate (System.Data.OracleClient.OracleNumber n, int position);
static member Truncate : System.Data.OracleClient.OracleNumber * int -> System.Data.OracleClient.OracleNumber
Public Shared Function Truncate (n As OracleNumber, position As Integer) As OracleNumber

Parameters

n
OracleNumber

The OracleNumber structure to be truncated.

position
Int32

The decimal position to which the number will be truncated.

Returns

A OracleNumber structure with its Value truncated to the specified position.

Remarks

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.

Applies to