Single.IsNegativeInfinity(Single) 메서드

정의

지정된 숫자가 음수 무한대로 계산되는지 여부를 나타내는 값을 반환합니다.

public:
 static bool IsNegativeInfinity(float f);
public:
 static bool IsNegativeInfinity(float f) = System::Numerics::INumberBase<float>::IsNegativeInfinity;
public static bool IsNegativeInfinity(float f);
static member IsNegativeInfinity : single -> bool
Public Shared Function IsNegativeInfinity (f As Single) As Boolean

매개 변수

f
Single

단정밀도 부동 소수점 숫자입니다.

반품

계산되면 /&이고 , 그렇지 않으면 .입니다.

구현

예제

다음 코드 예제에서는 메서드를 IsNegativeInfinity 보여 줍니다.

// This will return true.
Console.WriteLine("IsNegativeInfinity(-5.0F / 0) == {0}.", Single.IsNegativeInfinity(-5.0F / 0) ? "true" : "false");
// This will return true.
printfn $"IsNegativeInfinity(-5.0F / 0) == {Single.IsNegativeInfinity(-5f / 0f)}."
' This will return True.
Console.Write("IsNegativeInfinity(-5.0 / 0) = ")
If Single.IsNegativeInfinity(-5 / 0) Then
    Console.WriteLine("True.")
Else
    Console.WriteLine("False.")
End If

설명

부동 소수점 연산은 오버플로 조건을 신호로 반환 NegativeInfinity 합니다.

적용 대상

추가 정보