Dear all,
I could use some help here, because I can't believe I'm not able to easily
print formatted numbers under Julia in a easy way. What I try to do is to
write a function that, given a vector, prints all its components with a
user-defined format. I was trying something of the form
function Print_Vec(aux_VEC,form_VEC)
form_VEC :: ASCIIString
str_VEC = "%16.8f"
for elem_VEC in aux_VEC
str_VEC += @sprintf(form_VEC,elem_VEC)
end
return str_VEC
end
However, that doesn't work because it looks like the first argument in
@sprintf must be a explicit string, and not a variable.
Is there anything I can do with that?
Thanks a lot for your help.