Method YRoundToEven
- Namespace
- Zyl.VectorTraits
- Assembly
- VectorTraits.dll
YRoundToEven(Vector<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 Vector<float> YRoundToEven(Vector<float> value)
Parameters
Returns
- Vector<float>
A vector whose elements are the round to even of the elements in
value
(一个向量,其元素是value
中各元素的向偶数舍入).
- See Also
YRoundToEven(Vector<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 Vector<double> YRoundToEven(Vector<double> value)
Parameters
Returns
- Vector<double>
A vector whose elements are the round to even of the elements in
value
(一个向量,其元素是value
中各元素的向偶数舍入).
- See Also