SqlDecimal.Truncate(SqlDecimal, Int32) Método

Definição

Trunca o valor da estrutura SqlDecimal especificada para a posição que você deseja.

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

Parâmetros

n
SqlDecimal

A estrutura SqlDecimal a ser truncada.

position
Int32

A posição decimal na qual o número será truncado.

Retornos

SqlDecimal

Forneça um valor negativo para o parâmetro position a fim de truncar o valor para a posição correspondente à esquerda da vírgula decimal.

Aplica-se a

Confira também