num.to_str()
num.to_str(n) converts the number n to a string.
Returns
if
nis a string, returns the string unchanged.if
nis a number, converts it to its base-10 string representation.if
nis any other type, returnsnull.
Last updated
Was this helpful?