Convert numeric value to string
dest = tostring(X)
example
dest = tostring(X) converts numeric, Boolean, or enumerated data X to a string.
dest
X
expand all
Convert numeric value to string "1.2345".
"1.2345"
dest = tostring(1.2345);
Convert Boolean value to string "true".
"true"
dest = tostring(1==1);
Convert enumerated value to string "RED".
"RED"
dest = tostring(RED);
Use in Stateflow® charts that use C as the action language.
str2double | strcpy