SqlDecimal.Round(SqlDecimal, Int32) Metodo

Definizione

Ottiene il numero più vicino al valore della struttura specificata SqlDecimal con la precisione specificata.

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

Parametri

n
SqlDecimal

Struttura SqlDecimal da arrotondare.

position
Int32

Numero di cifre frazionarie significative (precisione) nel valore restituito.

Valori restituiti

Struttura SqlDecimal che contiene i risultati dell'operazione di arrotondamento.

Si applica a

Vedi anche