Re: [amibroker] printf formatting (decimal places)

 

Maybe you need something like:

printf(  "stochSlow: " + NumToStr(stochSlow, 1.2) +"%% \n" ) ;


On 23/05/2016 7:46 AM, meanomalist@yahoo.com [amibroker] wrote:
 

Printout on Commentry:
Market Cap ROC: 38.1679%

Code used:

printf(  "Market Cap ROC: " + Market_Cap_ROC_S +"%% \n" ) +

how can i show two decimal places instead of 4. so becomes as "Market Cap ROC: 38.16%"




__._,_.___

Posted by: Sab Nys <SabNys@yahoo.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (2)

Upgrade your account with the latest Yahoo Mail app
Get organized with the fast and easy-to-use Yahoo Mail app. Upgrade today!

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

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


.

__,_._,___


EmoticonEmoticon