SqlDecimal.AdjustScale(SqlDecimal, Int32, Boolean) Método

Definição

A escala do operando SqlDecimal será ajustado para o número de dígitos indicado pelo parâmetro de dígitos.The scale of the SqlDecimal operand will be adjusted to the number of digits indicated by the digits parameter. Dependendo do valor do parâmetro fRound, o valor será arrendondado para o número adequado de dígitos ou truncado.Depending on the value of the fRound parameter, the value will either be rounded to the appropriate number of digits or truncated.

public:
 static System::Data::SqlTypes::SqlDecimal AdjustScale(System::Data::SqlTypes::SqlDecimal n, int digits, bool fRound);
public static System.Data.SqlTypes.SqlDecimal AdjustScale (System.Data.SqlTypes.SqlDecimal n, int digits, bool fRound);
static member AdjustScale : System.Data.SqlTypes.SqlDecimal * int * bool -> System.Data.SqlTypes.SqlDecimal
Public Shared Function AdjustScale (n As SqlDecimal, digits As Integer, fRound As Boolean) As SqlDecimal

Parâmetros

n
SqlDecimal

A estrutura SqlDecimal a ser ajustada.The SqlDecimal structure to be adjusted.

digits
Int32

O número de dígitos na estrutura ajustada.The number of digits in the adjusted structure.

fRound
Boolean

Se esse parâmetro for true, o novo valor será arredondado, se false, o valor será truncado.If this parameter is true, the new Value will be rounded, if false, the value will be truncated.

Retornos

SqlDecimal

Uma nova estrutura SqlDecimal cuja propriedade Value contém o número ajustado.A new SqlDecimal structure whose Value property contains the adjusted number.

Aplica-se a