Skip to main content
Version: v4.23

str

Casts an expression to a string.

str(x:any) -> string

Description

The str function casts the given value x to a string.

Examples

Cast an IP address to a string

from {x: str(1.2.3.4)}
{x: "1.2.3.4"}

See Also

int, uint, float, time, ip