Single.MaxMagnitude(Single, Single) 메서드

정의

두 값을 더 큰 컴퓨팅과 비교합니다.

public:
 static float MaxMagnitude(float x, float y) = System::Numerics::INumberBase<float>::MaxMagnitude;
public static float MaxMagnitude (float x, float y);
static member MaxMagnitude : single * single -> single
Public Shared Function MaxMagnitude (x As Single, y As Single) As Single

매개 변수

x
Single

와 비교할 값입니다 y.

y
Single

와 비교할 값입니다 x.

반환

x 보다 y크면 이고, y그렇지 않으면 입니다.

구현

설명

이 메서드의 경우 IFloatingPointIeee754<TSelf> IEEE 754:2019 maximumMagnitude 함수와 일치합니다. 이렇게 하려면 NaN 입력이 호출자에게 -0.0 다시 전파되지 않고 보다 작 +0.0게 처리되어야 합니다.

적용 대상