SqlDecimal.Truncate(SqlDecimal, Int32) Metodo

Definizione

Tronca il valore della struttura specificata SqlDecimal all'oggetto desiderato.

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

Parametri

n
SqlDecimal

Struttura SqlDecimal da troncare.

position
Int32

Posizione decimale in cui verrà troncato il numero.

Valori restituiti

Specificare un valore negativo per il position parametro per troncare il valore alla posizione corrispondente a sinistra del separatore decimale.

Si applica a

Vedi anche