to_str(val)
Gets string representation of a value.
This script converts a value of type Boolean, Integer, Float, Pose (or a list of those types) to a string.
The resulting string cannot exceed 1023 characters.
Float numbers will be formatted with 6 decimals, and trailing zeros will be removed.
Parameters
val: value to convert
Return Value
The string representation of the given value.
Example command:
to_str(10)- returns "10"
to_str(2.123456123456)- returns "2.123456"
to_str(p[1.0, 2.0, 3.0, 4.0, 5.0, 6.0])- returns "p[1, 2, 3, 4, 5, 6]"
to_str([True, False, True])- returns "[True, False, True]"