Larry: can you provide details on exactly what you like about Fortran's
print statement?  Did it provide good defaults?  Was it easy to customize?

On Tue, Sep 22, 2015 at 12:55 PM, LarryD <larrydwor...@gmail.com> wrote:

> Something I miss from Fortran is the very convenient default "print *,
> ..... "  It handled almost 100% of my needs while working on a program and
> was easily replaced by real formatting when the time came. Is there any
> chance that Julia could get something like this?
>
> Thanks
>
>
> On Monday, September 21, 2015 at 3:46:31 AM UTC-5, Ferran Mazzanti wrote:
>>
>> 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.
>>
>

Reply via email to