Sve.RoundToNearest 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

RoundToNearest(Vector<Double>)

svfloat64_t svrintn[_f64]_m(svfloat64_t inactive, svbool_t pg, svfloat64_t op)

svfloat64_t svrintn[_f64]_x(svbool_t pg, svfloat64_t op)

svfloat64_t svrintn[_f64]_z(svbool_t pg, svfloat64_t op)

FRINTN Zresult.D, Pg/M, Zop.D

RoundToNearest(Vector<Single>)

svfloat32_t svrintn[_f32]_m(svfloat32_t inactive, svbool_t pg, svfloat32_t op)

svfloat32_t svrintn[_f32]_x(svbool_t pg, svfloat32_t op)

svfloat32_t svrintn[_f32]_z(svbool_t pg, svfloat32_t op)

FRINTN Zresult.S, Pg/M, Zop.S

RoundToNearest(Vector<Double>)

svfloat64_t svrintn[_f64]_m(svfloat64_t inactive, svbool_t pg, svfloat64_t op)

svfloat64_t svrintn[_f64]_x(svbool_t pg, svfloat64_t op)

svfloat64_t svrintn[_f64]_z(svbool_t pg, svfloat64_t op)

FRINTN Zresult.D, Pg/M, Zop.D

C#
public static System.Numerics.Vector<double> RoundToNearest(System.Numerics.Vector<double> value);

Parameters

value
Vector<Double>

Returns

Applies to

.NET 10 and .NET 9
Product Versions
.NET 9, 10

RoundToNearest(Vector<Single>)

svfloat32_t svrintn[_f32]_m(svfloat32_t inactive, svbool_t pg, svfloat32_t op)

svfloat32_t svrintn[_f32]_x(svbool_t pg, svfloat32_t op)

svfloat32_t svrintn[_f32]_z(svbool_t pg, svfloat32_t op)

FRINTN Zresult.S, Pg/M, Zop.S

C#
public static System.Numerics.Vector<float> RoundToNearest(System.Numerics.Vector<float> value);

Parameters

value
Vector<Single>

Returns

Applies to

.NET 10 and .NET 9
Product Versions
.NET 9, 10