array.toString() function

array.toString() is experimental and subject to change at any time.

array.toString() converts all values in an array to strings.

Supported array types

  • [bool]
  • [duration]
  • [float]
  • [int]
  • [time]
  • [uint]
Function type signature
(<-arr: [A]) => [string]
For more information, see Function type signatures.



Array of values to convert. Default is the piped-forward array (<-).


Convert an array of floats to strings

import "experimental/array"

arr = [12.0, 1.2300, NaN, 24.2]

array.toString(arr: arr)// Returns ["12.0", "1.2300", "NaN", "24.2"]

Was this page helpful?

Thank you for your feedback!

Introducing InfluxDB 3.0

The new core of InfluxDB built with Rust and Apache Arrow. Available today in InfluxDB Cloud Dedicated.

Learn more

State of the InfluxDB Cloud Serverless documentation

The new documentation for InfluxDB Cloud Serverless is a work in progress. We are adding new information and content almost daily. Thank you for your patience!

If there is specific information you’re looking for, please submit a documentation issue.