https://github.com/JuliaLang/julia/blob/59b6080e0a75dbe88b4890189ef02f2dbf4164ea/base/datafmt.jl#L489

writecsv dispatches to print_shortest for the numerical formatting:

io=IOBuffer();

julia> print_shortest(io,0.1234);

julia> takebuf_string(io)
".1234"

i'm not sure i would necessarily classify this as incorrect, since it is
printing the correct value. there is a todo note in the code noting that
users might want more control over the output format.


On Thu Dec 18 2014 at 1:13:40 AM Roman Nelson <[email protected]>
wrote:

> The code is standard:
>
> writecsv("C:\\Data\\test.csv", output)
>
> writedlm has the same issue. output is a matrix of type Any with text and
> numeric entries.

Reply via email to