Прочетете на английски Редактиране

Споделяне чрез


OracleNumber.Truncate(OracleNumber, Int32) Method

Definition

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

C#
public static System.Data.OracleClient.OracleNumber Truncate(System.Data.OracleClient.OracleNumber n, int position);

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

Продукт Версии
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1