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

832 B

title description aliases menu weight
math.isInf() function The math.isInf() function reports whether `f` is an infinity, according to `sign`.
/influxdb/cloud/reference/flux/functions/math/isinf/
influxdb_cloud_ref
name parent
math.isInf Math
301

The math.isInf() function reports whether f is an infinity, according to sign.

Output data type: Boolean

  • If sign > 0, math.isInf reports whether f is positive infinity.
  • If sign < 0, math.isInf reports whether f is negative infinity.
  • If sign == 0, math.isInf reports whether f is either infinity.
import "math"

math.isInf(f: 2.12, sign: 3)

// Returns false

Parameters

f

The value used in the evaluation.

Data type: Float

sign

The sign used in the evaluation.

Data type: Integer