Table of Contents

Enum FloatRoundMode

Namespace
Zyl.VectorTraits.Impl
Assembly
VectorTraits.dll

Float round mode (浮点舍入模式).

public enum FloatRoundMode : byte

Fields

CurrentDirection = 4

Round to current direction (向当前方向舍入). Use MXCSR.RC; see _MM_SET_ROUNDING_MODE.

ToEven = 0

Round to even (向偶数舍入). It is also known as rounding half to even/round to nearest integer (它也被称作四舍六入五成双/舍入到最近整数). See more: ToEven.

ToNegativeInfinity = 1

Floor (向下取整). It is also known as round to negative infinity (它也被称作向负无穷舍入). See more: ToNegativeInfinity.

ToPositiveInfinity = 2

Ceiling (向上取整). It is also known as round to positive infinity (它也被称作向正无穷舍入). See more: ToPositiveInfinity.

ToZero = 3

Round to zero (向零舍入). It is also known as truncate (它也被称作截断取整). See more: ToZero.