MathF.MaxMagnitude(Single, Single) 메서드

정의

두 개의 단정밀도 부동 소수점 수 중 더 큰 크기를 반환합니다.

public:
 static float MaxMagnitude(float x, float y);
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
Single

비교할 두 개의 단정밀도 부동 소수점 수 중 두 번째 숫자입니다.

반환

매개 변수 x 또는 y 중 더 큰 크기입니다. x이나 y 또는 xy가 모두 NaN과 같은 경우 NaN이 반환됩니다.

적용 대상