SqlDecimal.Round(SqlDecimal, Int32) Metod

Definition

Hämtar talet närmast den angivna SqlDecimal strukturens värde med den angivna precisionen.

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

Parametrar

n
SqlDecimal

Strukturen SqlDecimal som ska avrundas.

position
Int32

Antalet signifikanta bråktalssiffror (precision) i returvärdet.

Returer

En SqlDecimal struktur som innehåller resultatet av avrundningsåtgärden.

Gäller för

Se även