bitwise.snot() function

The bitwise.snot() function is experimental and subject to change at any time. By using this function, you accept the risks of experimental functions.

bitwise.snot() inverts every bit in a, an integer value.

import "experimental/bitwise"

bitwise.snot(a: 12)

// Returns -13



Integer to invert.

Was this page helpful?

Thank you for your feedback!

Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.