SqlDecimal.Round(SqlDecimal, Int32) Methode

Definitie

Hiermee wordt het getal opgehaald dat het dichtst bij de waarde van de opgegeven SqlDecimal structuur staat met de opgegeven precisie.

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

Parameters

n
SqlDecimal

De SqlDecimal te afronden structuur.

position
Int32

Het aantal significante fractionele cijfers (precisie) in de retourwaarde.

Retouren

Een SqlDecimal structuur die de resultaten van de afrondingsbewerking bevat.

Van toepassing op

Zie ook