math.signbit() function

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

Output data type: Boolean

import "math"

math.signbit(x: -1.2)

// Returns true

Parameters

x

The value used in the operation.

Data type: Float

This documentation is open source. See a typo? Please, open an issue.


Need help getting up and running? Get Support