[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: Printf -> Date possible ?



PureBytes Links

Trading Reference Links

Double it in the format string:

printf("Percentage Gain = %1.2f%%", gain);

This would give output like:

Percentage Gain = 23.59%

GP


--- In amibroker@xxxxxxxxxxxxxxx, "Trinolix Derry" <trinolix@xxx> wrote:
>
> Is there maybe any way to display the % letter ?
> 
> 
> Regards
> Thomas
> 
> 
> 
> 2007/6/25, Trinolix Derry <trinolix@xxx>:
> >
> > Hi,
> >
> > thanks a lot !
> > I see now that i missed the DateTimeToStr function.
> >
> > Regards
> >
> >
> >
> > 2007/6/25, gp_sydney <gp.investment@xxx>:
> > >
> > >   Try something like this:
> > >
> > > dt = DateTime();
> > > for (i = 0; i < BarCount; i++)
> > > printf(DateTimeToStr(dt[i]));
> > >
> > > GP
> > >
> > > --- In amibroker@xxxxxxxxxxxxxxx <amibroker%40yahoogroups.com>,
> > > "Trinolix Derry" <trinolix@> wrote:
> > > >
> > > > Hello,
> > > >
> > > > i would like to print the date through the printf function
inside my
> > > loop,
> > > > but wasn't successfully so far.
> > > > Can someone please tell me a solution ?
> > > >
> > > > Regards
> > > >
> > >
> > >  
> > >
> >
> >
>




Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/