Thanks Andreas. Do you know if this is the expected design pattern?
Meaning, it seems weird to need a macro to print out a float.
On Saturday, February 8, 2014 4:16:35 PM UTC-5, Andreas Noack Jensen wrote:
>
> You can use @sprintf, e.g. @sprintf("%f\n",1.3e9).
>
> 2014-02-08 22:10 GMT+01:00 Randy Zwitch <[email protected]<javascript:>
> >:
>
>> I'm trying to use the time() function within string interpolation, but
>> it's not producing the desired result:
>>
>> julia> time()
>>
>> 1.391893797590157e9
>>
>> julia> "$(time())"
>>
>> "1.391893808023869e9"
>>
>> How do I get the float representation?
>>
>
>
>
> --
> Med venlig hilsen
>
> Andreas Noack Jensen
>