Method YRoundToZero
- Namespace
- Zyl.VectorTraits
- Assembly
- VectorTraits.dll
YRoundToZero(Vector<float>)
Computes the round to zero of each element in a vector (计算向量中每个元素的向零舍入). It is also known as truncate (它也被称作截断取整). See more: ToZero.
Mnemonic: rt[i] := round_to_zero(value[i])
.
public static Vector<float> YRoundToZero(Vector<float> value)
Parameters
Returns
- Vector<float>
A vector whose elements are the round to zero of the elements in
value
(一个向量,其元素是value
中各元素的向零舍入).
- See Also
YRoundToZero(Vector<double>)
Computes the round to zero of each element in a vector (计算向量中每个元素的向零舍入). It is also known as truncate (它也被称作截断取整). See more: ToZero.
Mnemonic: rt[i] := round_to_zero(value[i])
.
public static Vector<double> YRoundToZero(Vector<double> value)
Parameters
Returns
- Vector<double>
A vector whose elements are the round to zero of the elements in
value
(一个向量,其元素是value
中各元素的向零舍入).
- See Also