math.signbit() function

The math.signbit() function reports whether x is negative or negative zero.

*Output data type: Boolean*

  1. import "math"
  2. math.signbit(x: -1.2)
  3. // Returns true

Parameters

x

The value used in the evaluation.

*Data type: Float*