Table of Contents

Method MinNumber_Bcl

Namespace
Zyl.VectorTraits.Numerics
Assembly
VectorTraits.dll

MinNumber_Bcl(float, float)

Compares two values to compute which is lesser and returning the other value if an input is NaN (取得两个值中较小的数字. 若其中一个是NaN, 则会返回另一个值).

public static float MinNumber_Bcl(float x, float y)

Parameters

x float

The value to compare with y (要与 y 进行比较的值).

y float

The value to compare with x (要与 x 进行比较的值).

Returns

float

Return the lesser number of two variables (返回两个值中较小的数字.).

Remarks

This method matches the IEEE 754:2019 minimumNumber function. This requires NaN inputs to not be propagated back to the caller and for -0.0 to be treated as less than +0.0 (此方法与 IEEE 754:2019 minimumNumber 函数匹配。 这要求 NaN 输入不传播回调用方,且 -0.0 被视为小于 +0.0).

See Also
MinNumber(TSelf, TSelf)

MinNumber_Bcl(double, double)

Compares two values to compute which is lesser and returning the other value if an input is NaN (取得两个值中较小的数字. 若其中一个是NaN, 则会返回另一个值).

public static double MinNumber_Bcl(double x, double y)

Parameters

x double

The value to compare with y (要与 y 进行比较的值).

y double

The value to compare with x (要与 x 进行比较的值).

Returns

double

Return the lesser number of two variables (返回两个值中较小的数字.).

Remarks

This method matches the IEEE 754:2019 minimumNumber function. This requires NaN inputs to not be propagated back to the caller and for -0.0 to be treated as less than +0.0 (此方法与 IEEE 754:2019 minimumNumber 函数匹配。 这要求 NaN 输入不传播回调用方,且 -0.0 被视为小于 +0.0).

See Also
MinNumber(TSelf, TSelf)

MinNumber_Bcl(Half, Half)

Compares two values to compute which is lesser and returning the other value if an input is NaN (取得两个值中较小的数字. 若其中一个是NaN, 则会返回另一个值).

public static Half MinNumber_Bcl(Half x, Half y)

Parameters

x Half

The value to compare with y (要与 y 进行比较的值).

y Half

The value to compare with x (要与 x 进行比较的值).

Returns

Half

Return the lesser number of two variables (返回两个值中较小的数字.).

Remarks

This method matches the IEEE 754:2019 minimumNumber function. This requires NaN inputs to not be propagated back to the caller and for -0.0 to be treated as less than +0.0 (此方法与 IEEE 754:2019 minimumNumber 函数匹配。 这要求 NaN 输入不传播回调用方,且 -0.0 被视为小于 +0.0).

See Also
MinNumber(TSelf, TSelf)