Sorry if this is a RTFM, but I can't find the answer in the documentation 
or on the web. I may have missed it. I come from Python where I can build 
strings with formatted data using a syntax like

s = "pi=%7.1e" % acos(-1)

How do I accomplish that in Julia? @printf doesn't do the job because it 
doesn't return anything:

julia> s = @printf("%7.1e", 3.14)
3.1e+00
julia> s




Thanks.

Reply via email to