WolframLang: Convert String
Number to String
ToString
-
Convert number or any expression to string.
String to Number
ToExpression
-
String to number.
ToExpression[ "3" ] === 3 ToExpression[ "3.21" ] === 3.21
String to List
StringSplit
-
split a string to a list of strings.
(* split by whitespace *) StringSplit[ "a b" ] === {"a", "b"}
(* split by comma *) StringSplit[ "a,b,c", "," ] === {"a", "b", "c"}
List to String
StringRiffle
-
List to string.
StringRiffle[ {"a" , "b" , "c"}, " " ] === "a b c"