Half.IsNegative(Half) 方法

定义

确定指定值是否为负值。Determines whether the specified value is negative.

public:
 static bool IsNegative(Half value);
public static bool IsNegative (Half value);
static member IsNegative : Half -> bool
Public Shared Function IsNegative (value As Half) As Boolean

参数

value
Half

一个 Half 浮点数字。A Half floating-point number.

返回

Boolean

如果为负值,则为 true;否则为 falsetrue if negative; false otherwise.

适用于