You can slices strings but those values aren't strings – they're floats. If you want to go this route, you could do this:
julia> println(string(aa)[1:5], " ", string(bb)[1:5]) 1.523 33.97 However, that seems harder, is considerably more fragile, and doesn't round correctly. On Mon, Apr 7, 2014 at 10:21 PM, cnbiz850 <[email protected]> wrote: > Thank you. > > I am hoping if we could do something like this: > > println(aa[1,5], " ", bb[1,5]) > > hopefully one can access part of strings that way. > > > On 04/08/2014 10:05 AM, Stefan Karpinski wrote: > >> julia> @printf("%.2f %.2f\n", aa, bb) >> 1.52 33.98 >> >> Note the rounding of bb. >> >> On Mon, Apr 7, 2014 at 9:35 PM, cnbiz850 <[email protected] <mailto: >> [email protected]>> wrote: >> >> julia> println(aa, " ", bb) >> 1.5231071779744345 33.976886930000695 >> >> Is there a simple way to print >> 1.52 33.97 >> >> perhaps without the C format? >> >> >> >
