Table of Contents

Method IsNegative

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

IsNegative(float)

Determines whether the specified floating-point number is negative.

public static bool IsNegative(float f)

Parameters

f float

The floating-point number to evaluate.

Returns

bool

true if the specified number is negative; otherwise, false.

Remarks

This method evaluates the sign bit of the floating-point number to determine its negativity. It does not consider special cases such as negative zero, which is treated as negative.