SqlDecimal.ConvertToPrecScale(SqlDecimal, Int32, Int32) Método
Definição
Ajusta o valor do operando SqlDecimal para a precisão e a escala indicadas.Adjusts the value of the SqlDecimal operand to the indicated precision and scale.
public:
static System::Data::SqlTypes::SqlDecimal ConvertToPrecScale(System::Data::SqlTypes::SqlDecimal n, int precision, int scale);
public static System.Data.SqlTypes.SqlDecimal ConvertToPrecScale (System.Data.SqlTypes.SqlDecimal n, int precision, int scale);
static member ConvertToPrecScale : System.Data.SqlTypes.SqlDecimal * int * int -> System.Data.SqlTypes.SqlDecimal
Public Shared Function ConvertToPrecScale (n As SqlDecimal, precision As Integer, scale As Integer) As SqlDecimal
Parâmetros
A estrutura SqlDecimal cujo valor deverá ser ajustado.The SqlDecimal structure whose value is to be adjusted.
- precision
- Int32
A precisão da nova estrutura SqlDecimal.The precision for the new SqlDecimal structure.
- scale
- Int32
A escala da nova estrutura SqlDecimal.The scale for the new SqlDecimal structure.
Retornos
Um nova estrutura SqlDecimal cujo Value foi ajustado para a precisão e a escala indicadas nos parâmetros.A new SqlDecimal structure whose Value has been adjusted to the precision and scale indicated in the parameters.