Method Truncate
- Namespace
- Zyl.VectorTraits.Numerics
- Assembly
- VectorTraits.dll
Truncate(float)
Computes the round to zero of value (计算值的向零舍入). It is also known as truncate (它也被称作截断取整). See more: ToZero.
public static float Truncate(float x)
Parameters
x
floatThe value to truncate (要截断的值).
Returns
- float
Returns the truncated value (返回截断后的值).
- See Also
-
Truncate(TSelf)
Truncate(double)
Computes the round to zero of value (计算值的向零舍入). It is also known as truncate (它也被称作截断取整). See more: ToZero.
public static double Truncate(double x)
Parameters
x
doubleThe value to truncate (要截断的值).
Returns
- double
Returns the truncated value (返回截断后的值).
- See Also
-
Truncate(TSelf)
Truncate(Half)
Computes the round to zero of value (计算值的向零舍入). It is also known as truncate (它也被称作截断取整). See more: ToZero.
public static Half Truncate(Half x)
Parameters
x
HalfThe value to truncate (要截断的值).
Returns
- Half
Returns the truncated value (返回截断后的值).
- See Also
-
Truncate(TSelf)