Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

- JMP User Community
- :
- Discussions
- :
- Convert every numbers in a list to strings

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Sep 8, 2019 8:00 AM
(1700 views)

Hi everyone, just out of curiosity, I wonder if there is a way to convert every numbers in a list to strings?

For eg, I have a list:

`listsss = {1, 4, 56, 72, 8, 9, 10};`

and I want to convert them into:

`listsss = {"1", "4", "56", "72", "8", "9", "10"};`

Is there any way to do it by JSL? Any comments will be appreciated. Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

```
L = {10, 200, 3000};
For( i = 1, i <= N Items( L ), i += 1,
L[i] = Char( L[i] )
);
Show( L );
```

**L = {"10", "200", "3000"};**

Craige

2 REPLIES 2

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

```
L = {10, 200, 3000};
For( i = 1, i <= N Items( L ), i += 1,
L[i] = Char( L[i] )
);
Show( L );
```

**L = {"10", "200", "3000"};**

Craige

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: Convert every numbers in a list to strings

@Craige_Hales This is perfect. Thank you!

Article Labels

There are no labels assigned to this post.