Vector.Round Method 
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Round(Vector<Double>) | 
						 Rounds each element in a vector to the nearest integer using the default rounding mode (ToEven).  | 
        	
| Round(Vector<Single>) | 
						 Rounds each element in a vector to the nearest integer using the default rounding mode (ToEven).  | 
        	
| Round(Vector<Double>, MidpointRounding) | |
| Round(Vector<Single>, MidpointRounding) | 
Round(Vector<Double>)
- Source:
 - Vector.cs
 
Rounds each element in a vector to the nearest integer using the default rounding mode (ToEven).
public:
 static System::Numerics::Vector<double> Round(System::Numerics::Vector<double> vector);
	public static System.Numerics.Vector<double> Round(System.Numerics.Vector<double> vector);
	static member Round : System.Numerics.Vector<double> -> System.Numerics.Vector<double>
	Public Function Round (vector As Vector(Of Double)) As Vector(Of Double)
	Parameters
Returns
The result of rounding each element in vector to the nearest integer using the default rounding mode.
Applies to
Round(Vector<Single>)
- Source:
 - Vector.cs
 
Rounds each element in a vector to the nearest integer using the default rounding mode (ToEven).
public:
 static System::Numerics::Vector<float> Round(System::Numerics::Vector<float> vector);
	public static System.Numerics.Vector<float> Round(System.Numerics.Vector<float> vector);
	static member Round : System.Numerics.Vector<single> -> System.Numerics.Vector<single>
	Public Function Round (vector As Vector(Of Single)) As Vector(Of Single)
	Parameters
Returns
The result of rounding each element in vector to the nearest integer using the default rounding mode.
Applies to
Round(Vector<Double>, MidpointRounding)
- Source:
 - Vector.cs
 
public:
 static System::Numerics::Vector<double> Round(System::Numerics::Vector<double> vector, MidpointRounding mode);
	public static System.Numerics.Vector<double> Round(System.Numerics.Vector<double> vector, MidpointRounding mode);
	static member Round : System.Numerics.Vector<double> * MidpointRounding -> System.Numerics.Vector<double>
	Public Function Round (vector As Vector(Of Double), mode As MidpointRounding) As Vector(Of Double)
	Parameters
- mode
 - MidpointRounding
 
Returns
Applies to
Round(Vector<Single>, MidpointRounding)
- Source:
 - Vector.cs
 
public:
 static System::Numerics::Vector<float> Round(System::Numerics::Vector<float> vector, MidpointRounding mode);
	public static System.Numerics.Vector<float> Round(System.Numerics.Vector<float> vector, MidpointRounding mode);
	static member Round : System.Numerics.Vector<single> * MidpointRounding -> System.Numerics.Vector<single>
	Public Function Round (vector As Vector(Of Single), mode As MidpointRounding) As Vector(Of Single)
	Parameters
- mode
 - MidpointRounding