docs-v2/content/influxdb/cloud/reference/flux/stdlib/math/signbit.md

537 B

title description aliases menu weight
math.signbit() function The math.signbit() function reports whether `x` is negative or negative zero.
/influxdb/cloud/reference/flux/functions/math/signbit/
influxdb_cloud_ref
name parent
math.signbit Math
301

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 evaluation.

Data type: Float