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

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



PureBytes Links

Trading Reference Links

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



 




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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

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

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