Table of Contents

Method ConvertToInt64_Range52RoundToEven

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

ConvertToInt64_Range52RoundToEven(Vector128<double>)

Convert to a vector whose elements are of type Int64, rounding mode is round to even(round to nearest integer) (转换为元素类型是Int64的向量, 舍入模式为舍入到偶数(舍入到最近整数)). Works for inputs in the range: [-2^51, 2^51). Mnemonic: rt[i] := (Int64)(round_to_even(value[i])).

public static Vector128<long> ConvertToInt64_Range52RoundToEven(Vector128<double> value)

Parameters

value Vector128<double>

The source vector (源向量).

Returns

Vector128<long>

The converted vector (转换后的向量).

See Also