Thank you Kristoffer, I had forgot about that thread on Stack Overflow. Will use Formatting.jl
Cheers, -Júlio 2015-11-18 10:40 GMT-08:00 Kristoffer Carlsson <[email protected]>: > https://groups.google.com/forum/#!topic/julia-users/iG6qwZ_GWzA > > > http://stackoverflow.com/questions/19783030/in-julia-why-is-printf-a-macro-instead-of-a-function > > https://groups.google.com/forum/#!topic/julia-users/7Sn5yys0UJE > > etc > > > On Wednesday, November 18, 2015 at 6:38:09 PM UTC+1, Júlio Hoffimann wrote: >> >> Hi, >> >> Could you please explain why this works: >> >> @sprintf("foo%02i", 3) >> >> but this doesn't: >> >> s = string("foo","%02i") >> @sprintf(s, 3) >> >> How is a formatted string different than an usual string? >> >> -Júlio >> >
