Table of Contents

Method YRoundToEven

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

YRoundToEven(Vector128<float>)

Computes the round to even of each element in a vector (计算向量中每个元素的向偶数舍入). It is also known as rounding half to even/round to nearest integer (它也被称作四舍六入五成双/舍入到最近整数). See more: ToEven. Mnemonic: rt[i] := round_to_even(value[i]).

public static Vector128<float> YRoundToEven(Vector128<float> value)

Parameters

value Vector128<float>

The vector that will have its round to even computed (将计算向偶数舍入的向量).

Returns

Vector128<float>

A vector whose elements are the round to even of the elements in value (一个向量,其元素是 value 中各元素的向偶数舍入).

See Also

YRoundToEven(Vector128<double>)

Computes the round to even of each element in a vector (计算向量中每个元素的向偶数舍入). It is also known as rounding half to even/round to nearest integer (它也被称作四舍六入五成双/舍入到最近整数). See more: ToEven. Mnemonic: rt[i] := round_to_even(value[i]).

public static Vector128<double> YRoundToEven(Vector128<double> value)

Parameters

value Vector128<double>

The vector that will have its round to even computed (将计算向偶数舍入的向量).

Returns

Vector128<double>

A vector whose elements are the round to even of the elements in value (一个向量,其元素是 value 中各元素的向偶数舍入).

See Also