I am downloading a CSV file that has financial data. So it has dollar signs, commas, decimal points, pluses, and minuses. I’ve been trying to remove this extra stuff so I can using floating point arithmetic, but I can’t get anywhere.
a = [“$123.00”, “$1,234.56”, “-$123.45”]
julia> replace!(a, “,” => “”)
3-element Vector{String}:
“$123.00”
“$1,234.56”
“-$123.45”
The comma remains. I get the same results (no change) trying to remove the $.,- symbols. There’s got to be an easy way to handle this.