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

Re: [amibroker] Re: Printf -> Date possible ?



PureBytes Links

Trading Reference Links

Hi,
 
thanks a lot !
Maybe one last question. Is there a way to reduce the displayed digits for any values.
Something like writeval(anything, 1.2) 
Unfortunately it doesn't work inside the loop.
 
Regards


 
2007/6/25, gp_sydney <gp.investment@xxxxxxxxx>:

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%40yahoog roups.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
> > > >
> > >
> > >
> > >
> >
> >
>




--
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





SPONSORED LINKS
Investment management software Investment property software Investment software
Investment tracking software Return on investment software

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___