Can I separate unspaced data in Julia?/or round data

It is not clear how you are printing the data, but for the problem with round the error indicates that you already have the data in a matrix and so you need to use broadcasting:

julia> v = [1.023 2.123 3.1]
1×3 Matrix{Float64}:
 1.023  2.123  3.1

julia> round.(v; digits=3)
1×3 Matrix{Float64}:
 1.023  2.123  3.1

i.e. using round.(...) rather than just round(...)

1 Like