SqlDecimal.Truncate(SqlDecimal, Int32) Método

Definição

Trunca o valor da estrutura especificada para a posição desejada SqlDecimal .

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 SqlDecimal estrutura a ser truncada.

position
Int32

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

Retornos

Forneça um valor negativo para o position parâmetro para truncar o valor para a posição correspondente à esquerda do ponto decimal.

Aplica-se a

Confira também