Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

Converting an array of string types

$
0
0

Hi all,
I am doing a small assignment project and this is the second time I am stuck. I have scrapped a website and got the data of the type stated below. Could some one please help me on how to convert the following array to an array of decimals?
a = [“96%”, “97%”, “97%”, “97%”, “93%”]

desired result

result = [9.6, 9.7, 9.7, 9.7, 9.3]

Thanks in advance.

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 2795

Trending Articles