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

RE: [amibroker] Re: Values in Title String (decimal place problem)



PureBytes Links

Trading Reference Links

Hi Dingo,

 

Thanks for the link; it explained the use and functionality of those items. 

 

Dave

 


From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of dingo
Sent: Sunday, February 12, 2006 9:26 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] Re: Values in Title String (decimal place problem)

 

This "might" help:

 

http://www.cplusplus.com/ref/cstdio/printf.html

 

d

 


From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Dave's Laptop
Sent: Sunday, February 12, 2006 12:23 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] Re: Values in Title String (decimal place problem)

Hi Steve,

I picked up on by other examples.  This is the only reference I could find
in the help file and it is in the description for PRINTF.

Note 1: for numbers always use %f, %e or %g formatting, %d or %x will not
work because there are no integers in AFL.

Maybe someone can help explain what each of these are and how to use them.

Dave

-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
Of sslack88
Sent: Sunday, February 12, 2006 8:49 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: Values in Title String (decimal place problem)

The %.2f fixed the problem.  Thanks for the help Dave!  Do you know
where in the help you can find %g, %.2f, etc.?  I want to understand
the formatting better.

Thanks Again,
Steve

--- In amibroker@xxxxxxxxxxxxxxx, "Dave's Laptop" <dlittner@xxx>
wrote:
>
> Another thing to do is to format that item in your title bar.
>
> Use %.2f (instead of %g that you might be using) to force it to 2
positions
> beyond the decimal point and in this case it might round up from
1.59999 to
> 1.60.
>
> Dave
>
> -----Original Message-----
> From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx]
On Behalf
> Of sslack88
> Sent: Sunday, February 12, 2006 8:08 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Values in Title String (decimal place problem)
>
> When I create a custom Title string for a spread chart, the value
> displayed in the Title is incorrect.  For example, the spread is -
1.60
> (the result of 201.60 - 203.20), however, when it appears in the
Title
> it shows 1.59999
>
> Any ideas?
>
> FYI - when I run an exploration, the values are correct
>
>
>
>
>
>
> 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 other support material please check also:
> http://www.amibroker.com/support.html
>

> Yahoo! Groups Links
>







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 other support material please check also:
http://www.amibroker.com/support.html


Yahoo! Groups Links









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 other support material please check also:
http://www.amibroker.com/support.html





SPONSORED LINKS
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment software


YAHOO! GROUPS LINKS