语言

UInt128.Max(UInt128, UInt128) 方法

定义

比较两个值与计算值更大。

public:
 static UInt128 Max(UInt128 x, UInt128 y) = System::Numerics::INumber<UInt128>::Max;
public static UInt128 Max(UInt128 x, UInt128 y);
static member Max : UInt128 * UInt128 -> UInt128
Public Shared Function Max (x As UInt128, y As UInt128) As UInt128

参数

x
UInt128

要与 y.. 进行比较的值。

y
UInt128

要与 x.. 进行比较的值。

返回

x 如果大于 y,则为 ;否则为 y。

实现

注解

对于 IFloatingPoint<TSelf> 此方法,与 IEEE 754:2019 maximum 函数匹配。 这要求将 NaN 输入传播回调用方,并 -0.0 被视为小于 +0.0。

适用于