The following errors:
function num_to_string(x,format="%.1f")
@sprintf format x
end
The error is:
LoadError: MethodError: no method matching Printf.Format(::Symbol)
I tried using the @sprintf(format,x) form, as well as interpolating(?) like @sprintf $format x
How can I use variables in the @sprintf format?