Szerkesztés

Megosztás a következőn keresztül:


Vector128.Round Method

Definition

Overloads

Round(Vector128<Double>)
Round(Vector128<Single>)
Round(Vector128<Double>, MidpointRounding)

Rounds each element in a vector to the nearest integer using the specified rounding mode.

Round(Vector128<Single>, MidpointRounding)

Rounds each element in a vector to the nearest integer using the specified rounding mode.

Round(Vector128<Double>)

public:
 static System::Runtime::Intrinsics::Vector128<double> Round(System::Runtime::Intrinsics::Vector128<double> vector);
public static System.Runtime.Intrinsics.Vector128<double> Round (System.Runtime.Intrinsics.Vector128<double> vector);
static member Round : System.Runtime.Intrinsics.Vector128<double> -> System.Runtime.Intrinsics.Vector128<double>
Public Function Round (vector As Vector128(Of Double)) As Vector128(Of Double)

Parameters

vector
Vector128<Double>

Returns

Applies to

Round(Vector128<Single>)

public:
 static System::Runtime::Intrinsics::Vector128<float> Round(System::Runtime::Intrinsics::Vector128<float> vector);
public static System.Runtime.Intrinsics.Vector128<float> Round (System.Runtime.Intrinsics.Vector128<float> vector);
static member Round : System.Runtime.Intrinsics.Vector128<single> -> System.Runtime.Intrinsics.Vector128<single>
Public Function Round (vector As Vector128(Of Single)) As Vector128(Of Single)

Parameters

vector
Vector128<Single>

Returns

Applies to

Round(Vector128<Double>, MidpointRounding)

Rounds each element in a vector to the nearest integer using the specified rounding mode.

public:
 static System::Runtime::Intrinsics::Vector128<double> Round(System::Runtime::Intrinsics::Vector128<double> vector, MidpointRounding mode);
public static System.Runtime.Intrinsics.Vector128<double> Round (System.Runtime.Intrinsics.Vector128<double> vector, MidpointRounding mode);
static member Round : System.Runtime.Intrinsics.Vector128<double> * MidpointRounding -> System.Runtime.Intrinsics.Vector128<double>
Public Function Round (vector As Vector128(Of Double), mode As MidpointRounding) As Vector128(Of Double)

Parameters

vector
Vector128<Double>

The vector to round.

mode
MidpointRounding

The mode under which vector should be rounded.

Returns

The result of rounding each element in vector to the nearest integer using mode.

Applies to

Round(Vector128<Single>, MidpointRounding)

Rounds each element in a vector to the nearest integer using the specified rounding mode.

public:
 static System::Runtime::Intrinsics::Vector128<float> Round(System::Runtime::Intrinsics::Vector128<float> vector, MidpointRounding mode);
public static System.Runtime.Intrinsics.Vector128<float> Round (System.Runtime.Intrinsics.Vector128<float> vector, MidpointRounding mode);
static member Round : System.Runtime.Intrinsics.Vector128<single> * MidpointRounding -> System.Runtime.Intrinsics.Vector128<single>
Public Function Round (vector As Vector128(Of Single), mode As MidpointRounding) As Vector128(Of Single)

Parameters

vector
Vector128<Single>

The vector to round.

mode
MidpointRounding

The mode under which vector should be rounded.

Returns

The result of rounding each element in vector to the nearest integer using mode.

Applies to